diff options
author | tkchin@webrtc.org <tkchin@webrtc.org> | 2014-11-05 22:01:53 +0000 |
---|---|---|
committer | tkchin@webrtc.org <tkchin@webrtc.org> | 2014-11-05 22:01:53 +0000 |
commit | 7d974c11e23898cd59838c79751b96c45b09ec4b (patch) | |
tree | 2cef7197ddf1b2ce355c390f217612054c9d9e84 | |
parent | 16cad083760474d71bdc3e990fd2f85c0245f000 (diff) | |
download | talk-7d974c11e23898cd59838c79751b96c45b09ec4b.tar.gz |
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/talk@7636 4adac7df-926f-26a2-2b94-8c16560cd09d
-rw-r--r-- | app/webrtc/objc/RTCPeerConnection.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/webrtc/objc/RTCPeerConnection.mm b/app/webrtc/objc/RTCPeerConnection.mm index 925de73..7767f76 100644 --- a/app/webrtc/objc/RTCPeerConnection.mm +++ b/app/webrtc/objc/RTCPeerConnection.mm @@ -68,6 +68,7 @@ class RTCCreateSessionDescriptionObserver [_delegate peerConnection:_peerConnection didCreateSessionDescription:session error:nil]; + delete desc; } virtual void OnFailure(const std::string& error) OVERRIDE { |