Skip to content

Fixes memory leak#105

Merged
jmillan merged 4 commits intoversatica:v3from
ploverlake:v3
Nov 20, 2020
Merged

Fixes memory leak#105
jmillan merged 4 commits intoversatica:v3from
ploverlake:v3

Conversation

@ploverlake
Copy link
Copy Markdown
Contributor

The std::vector won’t delete the objects that are pointed to.

Comment thread src/sdp/RemoteSdp.cpp
@jmillan
Copy link
Copy Markdown
Member

jmillan commented Nov 20, 2020

Great,

Just a cosmetic change requested.

We MUST take the ownership of |desc| in callback 'CreateSessionDescriptionObserver::OnSuccess'.
@ploverlake
Copy link
Copy Markdown
Contributor Author

I have pushed one more commit to fix another memory leak.

See the comment of CreateSessionDescriptionObserver::OnSuccess in /path/to/webrtc/src/api/jsep.h, the the ownership of the |desc| is transferred by the callback, so we MUST take the ownership.

Co-authored-by: José Luis Millán <jmillan@aliax.net>
Comment thread src/PeerConnection.cpp
@jmillan jmillan merged commit 58cdef9 into versatica:v3 Nov 20, 2020
@jmillan
Copy link
Copy Markdown
Member

jmillan commented Nov 20, 2020

Thanks @ploverlake!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants