[vlc-commits] macosx: fix crash when closing video window without decorations

David Fuhrmann git at videolan.org
Mon Nov 25 17:39:40 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Nov 25 17:36:27 2013 +0100| [ee3e5d56ec9816c3728706b3618686790fb0892d] | committer: David Fuhrmann

macosx: fix crash when closing video window without decorations

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

 modules/gui/macosx/VLCVoutWindowController.m |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index fb934b8..595a27c 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -94,6 +94,7 @@
         BOOL b_no_video_deco_only = !b_video_wallpaper;
         o_new_video_window = [[VLCVideoWindowCommon alloc] initWithContentRect:window_rect styleMask:mask backing:NSBackingStoreBuffered defer:YES];
         [o_new_video_window setDelegate:o_new_video_window];
+        [o_new_video_window setReleasedWhenClosed: NO];
 
         if (b_video_wallpaper)
             [o_new_video_window setLevel:CGWindowLevelForKey(kCGDesktopWindowLevelKey) + 1];



More information about the vlc-commits mailing list