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@6331 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tkchin@webrtc.org
2014-06-04 20:19:39 +00:00
parent c6db88b0cf
commit 738df8913d
2 changed files with 81 additions and 25 deletions

View File

@@ -101,6 +101,7 @@
[self.peerConnection close];
self.peerConnection = nil;
self.client = nil;
self.videoSource = nil;
self.queuedRemoteCandidates = nil;
}