[vlc-devel] commit: Corrects crash when closing preference dialog (upper right X icon) and trying to open it again. (Erwan Tulou )

git version control git at videolan.org
Tue Mar 3 09:17:16 CET 2009


vlc | branch: master | Erwan Tulou <brezhoneg1 at yahoo.fr> | Mon Mar  2 16:39:39 2009 +0100| [657bd315b7e52c4356291c6f7ad72641d27c72f0] | committer: Jean-Baptiste Kempf 

Corrects crash when closing preference dialog (upper right X icon) and trying to open it again.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/dialogs/preferences.hpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs/preferences.hpp b/modules/gui/qt4/dialogs/preferences.hpp
index bbddfaa..5c22279 100644
--- a/modules/gui/qt4/dialogs/preferences.hpp
+++ b/modules/gui/qt4/dialogs/preferences.hpp
@@ -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* );




More information about the vlc-devel mailing list