]> git.sesse.net Git - vlc/commitdiff
macosx: remove callbacks in VLCMain correctly. Fixes #5427
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 15 Oct 2011 14:57:09 +0000 (16:57 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 15 Oct 2011 14:57:09 +0000 (16:57 +0200)
modules/gui/macosx/intf.m

index f6eea48bbe2e42d38eefa1713f802393bb161386..c69633d18e0427be1bd392faff96a7545a6ed1b5 100644 (file)
@@ -1440,7 +1440,10 @@ unsigned int CocoaKeyToVLC( unichar i_key )
         else
         {
             if (state == END_S)
+            {
+                var_DelCallback( p_input, "intf-event", InputEvent, [VLCMain sharedInstance] );
                 [o_mainmenu setSubmenusEnabled: FALSE];
+            }
             [[self mainMenu] setPlay];
             [o_mainwindow setPlay];
         }