[vlc-commits] macosx: fix another crash on exit

David Fuhrmann git at videolan.org
Fri May 4 15:44:57 CEST 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri May  4 00:26:06 2012 +0200| [be2e926663715f73bce48dad99f4aa765988c4ef] | committer: David Fuhrmann

macosx: fix another crash on exit

(for whatever reason this was only observable on snow leopard for me)
(cherry picked from commit fa3efbecc46ecb54900d2b0a060a80d001a321af)

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

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

 modules/gui/macosx/ExtensionsManager.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/ExtensionsManager.m b/modules/gui/macosx/ExtensionsManager.m
index 80e7551..14f7642 100644
--- a/modules/gui/macosx/ExtensionsManager.m
+++ b/modules/gui/macosx/ExtensionsManager.m
@@ -352,7 +352,8 @@ static ExtensionsManager* instance = nil;
     msg_Dbg( p_intf, "Killing extension dialog provider" );
     [ExtensionsDialogProvider killInstance];
 
-    vlc_object_release( p_extensions_manager );
+    if( p_extensions_manager )
+        vlc_object_release( p_extensions_manager );
 
     [p_extDict release];
 



More information about the vlc-commits mailing list