[vlc-commits] macosx: prevent possible double release for blackout windows
David Fuhrmann
git at videolan.org
Tue Aug 6 20:19:10 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Aug 6 20:08:55 2013 +0200| [50ddd739482c8c1a7850ab10cdf3afde58706d05] | committer: David Fuhrmann
macosx: prevent possible double release for blackout windows
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50ddd739482c8c1a7850ab10cdf3afde58706d05
---
modules/gui/macosx/misc.m | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index 874f74a..198a2be 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -242,6 +242,7 @@ static NSMutableArray *blackoutWindows = NULL;
backing: NSBackingStoreBuffered defer: NO screen: screen];
[blackoutWindow setBackgroundColor:[NSColor blackColor]];
[blackoutWindow setLevel: NSFloatingWindowLevel]; /* Disappear when Expose is triggered */
+ [blackoutWindow setReleasedWhenClosed:NO]; // window is released when deleted from array above
[blackoutWindow displayIfNeeded];
[blackoutWindow orderFront: self animate: YES];
More information about the vlc-commits
mailing list