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:
tkchin@webrtc.org 2014-11-05 22:01:53 +00:00
parent 6a364fe11b
commit ee9d61ce45
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Jie Mao <maojie0924@gmail.com>
Luke Weber
Manish Jethani <manish.jethani@gmail.com>
Martin Storsjo <martin@martin.st>
Matthias Liebig <matthias.gcode@gmail.com>
Pali Rohar
Paul Kapustin <pkapustin@gmail.com>
Rafael Lopez Diez <rafalopezdiez@gmail.com>

View File

@ -68,6 +68,7 @@ class RTCCreateSessionDescriptionObserver
[_delegate peerConnection:_peerConnection
didCreateSessionDescription:session
error:nil];
delete desc;
}
virtual void OnFailure(const std::string& error) OVERRIDE {