playlist: if(X)free(X) -> free(X)
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 1 Apr 2008 20:55:16 +0000 (22:55 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 1 Apr 2008 20:55:16 +0000 (22:55 +0200)
src/playlist/loadsave.c

index cd27f1c..4fe2807 100644 (file)
@@ -83,8 +83,7 @@ int playlist_Export( playlist_t * p_playlist, const char *psz_filename ,
 
     /* Clean up */
     fclose( p_export->p_file );
-    if ( p_export->psz_filename )
-        free( p_export->psz_filename );
+    free( p_export->psz_filename );
     free ( p_export );
     p_playlist->p_private = NULL;
     vlc_mutex_unlock( &p_playlist->object_lock );