[vlc-devel] commit: Don't mix malloc and delete. ( Rémi Duraffort )
git version control
git at videolan.org
Thu Jul 31 18:23:22 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 18:26:26 2008 +0200| [b06464e4a8277e77dd7da3053b40d881e4861ee6]
Don't mix malloc and delete.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b06464e4a8277e77dd7da3053b40d881e4861ee6
---
modules/gui/qt4/components/open_panels.cpp | 6 +++---
modules/gui/qt4/components/simple_preferences.cpp | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index a37dc27..5d7b426 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -273,9 +273,9 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
DiscOpenPanel::~DiscOpenPanel()
{
- delete psz_dvddiscpath;
- delete psz_vcddiscpath;
- delete psz_cddadiscpath;
+ free( psz_dvddiscpath );
+ free( psz_vcddiscpath );
+ free( psz_cddadiscpath );
}
void DiscOpenPanel::clear()
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 2f62769..206283f 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -365,8 +365,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
{
ui.DVDDevice->setText( qfu( psz_dvddiscpath ) );
}
- delete psz_cddadiscpath; delete psz_dvddiscpath;
- delete psz_vcddiscpath;
+ free( psz_cddadiscpath );
+ free( psz_dvddiscpath );
+ free( psz_vcddiscpath );
}
CONFIG_GENERIC_NO_BOOL( "server-port", Integer, NULL, UDPPort );
More information about the vlc-devel
mailing list