From: Jean-Baptiste Kempf Date: Sat, 19 Jan 2008 06:56:53 +0000 (+0000) Subject: Qt4 - Fix the double free. Close #1397. X-Git-Tag: 0.9.0-test0~3368 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e2c2279d9d180de776438375103b50c14f2f04e9;p=vlc Qt4 - Fix the double free. Close #1397. --- diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index 7075fe79d8..33041ceaf1 100644 --- a/modules/gui/qt4/components/open_panels.cpp +++ b/modules/gui/qt4/components/open_panels.cpp @@ -67,14 +67,10 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : /* retrieve last known path used in file browsing */ char *psz_filepath = config_GetPsz( p_intf, "qt-filedialog-path" ); - if( EMPTY_STR( psz_filepath ) ) - { - psz_filepath = p_intf->p_libvlc->psz_homedir; - } // Make this QFileDialog a child of tempWidget from the ui. dialogBox = new FileOpenBox( ui.tempWidget, NULL, - qfu( psz_filepath ), fileTypes ); + qfu( EMPTY_STR( psz_filepath ) ? psz_filepath : p_intf->p_libvlc->psz_homedir ), fileTypes ); delete psz_filepath; dialogBox->setFileMode( QFileDialog::ExistingFiles );