Commit b06464e4 authored by Rémi Duraffort's avatar Rémi Duraffort

Don't mix malloc and delete.

parent 97b00233
...@@ -273,9 +273,9 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -273,9 +273,9 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
DiscOpenPanel::~DiscOpenPanel() DiscOpenPanel::~DiscOpenPanel()
{ {
delete psz_dvddiscpath; free( psz_dvddiscpath );
delete psz_vcddiscpath; free( psz_vcddiscpath );
delete psz_cddadiscpath; free( psz_cddadiscpath );
} }
void DiscOpenPanel::clear() void DiscOpenPanel::clear()
......
...@@ -365,8 +365,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -365,8 +365,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
{ {
ui.DVDDevice->setText( qfu( psz_dvddiscpath ) ); ui.DVDDevice->setText( qfu( psz_dvddiscpath ) );
} }
delete psz_cddadiscpath; delete psz_dvddiscpath; free( psz_cddadiscpath );
delete psz_vcddiscpath; free( psz_dvddiscpath );
free( psz_vcddiscpath );
} }
CONFIG_GENERIC_NO_BOOL( "server-port", Integer, NULL, UDPPort ); CONFIG_GENERIC_NO_BOOL( "server-port", Integer, NULL, UDPPort );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment