]> git.sesse.net Git - vlc/commitdiff
m3u.c: don't free and write
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 26 Aug 2007 20:20:40 +0000 (20:20 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 26 Aug 2007 20:20:40 +0000 (20:20 +0000)
modules/misc/playlist/m3u.c

index 7030e5759cb99ffafba547788e80da6d847f2b71..1c650baa7c40c044d276777f47f567597d37f08e 100644 (file)
@@ -87,7 +87,6 @@ static void DoChildren( playlist_t *p_playlist, playlist_export_t *p_export,
             }
             free( psz_artist );
         }
-        free( psz_uri );
         free( psz_name );
 
         /* VLC specific options */
@@ -102,6 +101,7 @@ static void DoChildren( playlist_t *p_playlist, playlist_export_t *p_export,
         vlc_mutex_unlock( &p_current->p_input->lock );
 
         fprintf( p_export->p_file, "%s\n", psz_uri );
+        free( psz_uri );
     }
 }