[vlc-commits] macosx: prevent possible double release for blackout windows

David Fuhrmann git at videolan.org
Tue Aug 6 20:21:17 CEST 2013


vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Aug  6 20:08:55 2013 +0200| [820042b3f9ca872bd77227822601fdfe693f1ebd] | committer: David Fuhrmann

macosx: prevent possible double release for blackout windows
(cherry picked from commit 50ddd739482c8c1a7850ab10cdf3afde58706d05)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=820042b3f9ca872bd77227822601fdfe693f1ebd
---

 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