This fixes a small memory leak (found using Xcode/Instruments on iOS) in
the ObjC bindings of PeerConnection. The generated session description has to be released by the recipient BUG=3985 R=tkchin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/28959004 Patch from Matthias Liebig <matthias.gcode@gmail.com>. git-svn-id: http://webrtc.googlecode.com/svn/trunk@7636 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
6a364fe11b
commit
ee9d61ce45
1
AUTHORS
1
AUTHORS
@ -14,6 +14,7 @@ Jie Mao <maojie0924@gmail.com>
|
|||||||
Luke Weber
|
Luke Weber
|
||||||
Manish Jethani <manish.jethani@gmail.com>
|
Manish Jethani <manish.jethani@gmail.com>
|
||||||
Martin Storsjo <martin@martin.st>
|
Martin Storsjo <martin@martin.st>
|
||||||
|
Matthias Liebig <matthias.gcode@gmail.com>
|
||||||
Pali Rohar
|
Pali Rohar
|
||||||
Paul Kapustin <pkapustin@gmail.com>
|
Paul Kapustin <pkapustin@gmail.com>
|
||||||
Rafael Lopez Diez <rafalopezdiez@gmail.com>
|
Rafael Lopez Diez <rafalopezdiez@gmail.com>
|
||||||
|
@ -68,6 +68,7 @@ class RTCCreateSessionDescriptionObserver
|
|||||||
[_delegate peerConnection:_peerConnection
|
[_delegate peerConnection:_peerConnection
|
||||||
didCreateSessionDescription:session
|
didCreateSessionDescription:session
|
||||||
error:nil];
|
error:nil];
|
||||||
|
delete desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnFailure(const std::string& error) OVERRIDE {
|
virtual void OnFailure(const std::string& error) OVERRIDE {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user