Commit a83d77ba authored by David Fuhrmann's avatar David Fuhrmann

Mac plugin: fix crash by avoiding dangling playback layer pointer

parent 38be77b8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment