[vlc-commits] Mac plugin: fix crash by avoiding dangling playback layer pointer
David Fuhrmann
git at videolan.org
Tue Jan 28 15:16:12 CET 2014
npapi-vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Jan 28 15:14:33 2014 +0100| [a83d77bac6d93ebdfa20f06be08212b7849b4564] | committer: David Fuhrmann
Mac plugin: fix crash by avoiding dangling playback layer pointer
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=a83d77bac6d93ebdfa20f06be08212b7849b4564
---
npapi/vlcplugin_mac.mm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/npapi/vlcplugin_mac.mm b/npapi/vlcplugin_mac.mm
index 13b4136..981f772 100644
--- a/npapi/vlcplugin_mac.mm
+++ b/npapi/vlcplugin_mac.mm
@@ -405,8 +405,10 @@ bool VlcPluginMac::handle_event(void *event)
[aLayer removeFromSuperlayer];
[CATransaction commit];
- if (playbackLayer == aLayer)
+ if (playbackLayer == aLayer) {
[playbackLayer release];
+ playbackLayer = nil;
+ }
}
- (CGSize)currentOutputSize
More information about the vlc-commits
mailing list