]> git.sesse.net Git - vlc/blobdiff - modules/visualization/goom.c
Input access locking, part 2.
[vlc] / modules / visualization / goom.c
index 06481d7ca6dc2ea8d2af4873ccbc3c911024ac6d..1d9a859a1c4dd44b03c06c5322be01d5aeaf18c9 100644 (file)
@@ -416,12 +416,10 @@ static char *TitleGet( vlc_object_t *p_this )
 
     if( p_input )
     {
-        if( !EMPTY_STR( input_item_GetTitle( input_GetItem(p_input) ) ) )
-        {
-            psz_title = strdup( input_item_GetTitle( input_GetItem(p_input) ) );
-        }
-        else
+        psz_title = strdup( input_item_GetTitle( input_GetItem( p_input ) ) );
+        if( EMPTY_STR( psz_title ) )
         {
+            free( psz_title );
             char *psz = strrchr( input_GetItem(p_input)->psz_uri, '/' );
 
             if( psz )