[vlc-devel] commit: Don't mix malloc and delete. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 31 18:34:12 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 18:36:31 2008 +0200| [62e75b3f5989547873d9a0bd1daf5b2a2b000e93]

Don't mix malloc and delete.

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

 modules/gui/qt4/components/simple_preferences.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 206283f..7be48f3 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -471,7 +471,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                 else if( strstr( psz_intf, "qt" ) )
                     ui.qt4->setChecked( true );
             }
-            delete psz_intf;
+            free( psz_intf );
 
             optionWidgets.append( ui.skins );
             optionWidgets.append( ui.qt4 );




More information about the vlc-devel mailing list