]> git.sesse.net Git - vlc/commitdiff
qt4_skins2: fix a crash that occure when using skins2.
authorRémi Duraffort <ivoire@videolan.org>
Sat, 24 Jan 2009 11:19:10 +0000 (12:19 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 24 Jan 2009 11:50:07 +0000 (12:50 +0100)
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/main_interface.cpp

index 997257b0ab1fab11bbd14a30ded40004b43c6ebf..c08a6a5955e8418094155910ee4f634f69d6aff8 100644 (file)
@@ -203,7 +203,7 @@ public:
         i_arg = _i_arg;
         p_arg = _p_arg;
     };
-    virtual ~DialogEvent() { delete p_arg; };
+    virtual ~DialogEvent() { };
 
     int i_arg, i_dialog;
     intf_dialog_args_t *p_arg;
index bce2c8cffa384f9db35e94adcf4ee45a631b0896..e58b443e4ac93919e8c58ec58542b768f1a67983 100644 (file)
@@ -1123,7 +1123,7 @@ static int PopupMenuCB( vlc_object_t *p_this, const char *psz_variable,
     if( p_intf->pf_show_dialog )
     {
         p_intf->pf_show_dialog( p_intf, INTF_DIALOG_POPUPMENU,
-                                new_val.b_bool, 0 );
+                                new_val.b_bool, NULL );
     }
 
     return VLC_SUCCESS;