]> git.sesse.net Git - vlc/blobdiff - modules/codec/cmml/history.c
Input access locking, part 3 (final).
[vlc] / modules / codec / cmml / history.c
index f1cb6d735ed79b814243b40003de222b197659dc..25a8effbe2f4249ac67db77be9ab5a9ef80f45e7 100644 (file)
@@ -113,8 +113,12 @@ static void history_Dump( history_t *p_history )
         if( p_item == NULL )
             fprintf( stderr, "HISTORY: [%d] NULL\n", i );
         else
+        {
+            char *psz_uri = input_item_GetURI( p_item );
             fprintf( stderr, "HISTORY: [%d] %p (%p->%s)\n", i, p_item,
-                     p_item->psz_uri, p_item->psz_uri );
+                     psz_uri, psz_uri );
+            free( psz_uri );
+        }
     }
 }