summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authortkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-06-04 20:19:39 +0000
committertkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-06-04 20:19:39 +0000
commit5eb79e17e8d4d6df3791c863e5266ea906a7a37b (patch)
treedf4f208c814ca929ad5124f6914d56426c006cbc /examples
parent8c080a4f985db5238f475165c987397e40e5910a (diff)
downloadtalk-5eb79e17e8d4d6df3791c863e5266ea906a7a37b.tar.gz
Fix retain cycle in RTCEAGLVideoView.
CADisplayLink increases its target's refcount. In order to break retain cycle, we wrap CADisplayLink in a new RTCDisplayLinkTimer class and use that instead. R=fischman@webrtc.org, noahric@chromium.org BUG=3391 Review URL: https://webrtc-codereview.appspot.com/16599006 git-svn-id: http://webrtc.googlecode.com/svn/trunk/talk@6331 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'examples')
-rw-r--r--examples/objc/AppRTCDemo/APPRTCConnectionManager.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/objc/AppRTCDemo/APPRTCConnectionManager.m b/examples/objc/AppRTCDemo/APPRTCConnectionManager.m
index 6d0a5a2..b411a62 100644
--- a/examples/objc/AppRTCDemo/APPRTCConnectionManager.m
+++ b/examples/objc/AppRTCDemo/APPRTCConnectionManager.m
@@ -101,6 +101,7 @@
[self.peerConnection close];
self.peerConnection = nil;
self.client = nil;
+ self.videoSource = nil;
self.queuedRemoteCandidates = nil;
}