versatica / mediasoup

Cutting Edge WebRTC Video Conferencing
https://mediasoup.org
ISC License
6.27k stars 1.13k forks source link

TestRtpStreamSend: ASAN, fix memory leaks #1420

Closed jmillan closed 4 months ago

jmillan commented 4 months ago

Use std::unique_pointer rather than raw pointers

By running MEDIASOUP_BUILDTYPE=Debug make test-asan-address most or all issues are related to not properly freeing instances in tests, so let's use std::unique_ptr everywhere rather than raw pointers.

ibc commented 4 months ago

I'm merging this.