]> git.sesse.net Git - vlc/commitdiff
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 cd27f1c2d6ad1bf01c990648307dea15da415351..4fe2807e9a910a17a2a4b3cf86827b44f976f6ed 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 );