modules/access/cdda.c: Fix an input_item memleak.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 23 Dec 2007 14:34:25 +0000 (14:34 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 23 Dec 2007 14:34:25 +0000 (14:34 +0000)
modules/access/cdda.c

index 6c13a23..e75899e 100644 (file)
@@ -493,6 +493,7 @@ static int GetTracks( access_t *p_access,
         playlist_BothAddInput( p_playlist, p_input_item, p_item_in_category,
                                PLAYLIST_APPEND, PLAYLIST_END, NULL, NULL,
                                VLC_FALSE );
+        vlc_gc_decref( p_input_item );
         free( psz_uri ); free( psz_opt ); free( psz_name );
         free( psz_first ); free( psz_last );
     }