[vlc-devel] commit: Revert "missing strdup" ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Mar 5 16:56:49 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar  5 17:53:36 2009 +0200| [eb0873003ae859aa21d567cd94cc36178669396c] | committer: Rémi Denis-Courmont 

Revert "missing strdup"

config_PutPsz() and var_SetString() are calling strdup() internally.
This reverts commit 867836628fd4f4959aac18f0af819f0c611410fa.

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

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

diff --git a/modules/gui/qt4/dialogs/podcast_configuration.cpp b/modules/gui/qt4/dialogs/podcast_configuration.cpp
index 94836f7..69d0dc9 100644
--- a/modules/gui/qt4/dialogs/podcast_configuration.cpp
+++ b/modules/gui/qt4/dialogs/podcast_configuration.cpp
@@ -72,7 +72,7 @@ void PodcastConfigDialog::accept()
         urls +=  ui.podcastList->item(i)->text();
         if( i != ui.podcastList->count()-1 ) urls += "|";
     }
-    const char *psz_urls = strdup( qtu( urls ) );
+    const char *psz_urls = qtu( urls );
     config_PutPsz( p_intf, "podcast-urls", psz_urls );
     vlc_object_t *p_obj = (vlc_object_t*)
                           vlc_object_find_name( p_intf->p_libvlc,




More information about the vlc-devel mailing list