]> git.sesse.net Git - vlc/commitdiff
Corrects crash when closing preference dialog (upper right X icon) and trying to...
authorErwan Tulou <brezhoneg1@yahoo.fr>
Mon, 2 Mar 2009 15:39:39 +0000 (16:39 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 3 Mar 2009 08:09:49 +0000 (09:09 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/dialogs/preferences.hpp

index bbddfaa64207d380283b4c83286e8fe325d570bd..5c2227908ea1b00524d4c5c4387137e20e7d55ce 100644 (file)
@@ -51,7 +51,7 @@ public:
             instance = new PrefsDialog( (QWidget *)p_intf->p_sys->p_mi, p_intf );
         return instance;
     }
-    virtual ~PrefsDialog() {};
+    virtual ~PrefsDialog() { instance = NULL; }
 #if 0
     /*Called from extended settings, is not used anymore, but could be useful one day*/
     void showModulePrefs( char* );