]> git.sesse.net Git - vlc/commitdiff
playlist: Remove the callbacks from the deleted input item.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 12 Aug 2008 22:16:34 +0000 (00:16 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 12 Aug 2008 22:57:25 +0000 (00:57 +0200)
src/playlist/item.c

index 7ad73db344637ef0d32ff17d93c782fb54472711..723e1557c357c64456677cbe606eb8ce44042a0a 100644 (file)
@@ -213,6 +213,7 @@ int playlist_ItemRelease( playlist_item_t *p_item )
      * Most of the modules does that.
      *
      * Who wants to add proper memory management? */
+    uninstall_input_item_observer( p_item );
     ARRAY_APPEND( p_item->p_playlist->items_to_delete, p_item);
     return VLC_SUCCESS;
 }