Commit 7ca4e3eb authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: Make sure we don't pl_Release(p_playlist).

In those case the pl_* API doesn't seems convienent/well used.
parent 875cd3dd
......@@ -354,7 +354,7 @@ InterfaceWindow::~InterfaceWindow()
}
if( p_playlist )
{
pl_Release( p_playlist );
vlc_object_release( p_playlist );
}
#if 0
if( fPlaylistWindow )
......
......@@ -424,7 +424,7 @@ Playlist::~Playlist()
var_DelCallback( p_playlist, "intf-change", PlaylistChanged, this );
var_DelCallback( p_playlist, "item-append", ItemAppended, this );
var_DelCallback( p_playlist, "item-deleted", ItemDeleted, this );
pl_Release( p_playlist );
vlc_object_release( p_playlist );
}
/**********************************************************************
......
......@@ -187,7 +187,7 @@ PlaylistManager::~PlaylistManager()
var_DelCallback( p_playlist, "intf-change", PlaylistChanged, this );
var_DelCallback( p_playlist, "item-append", ItemAppended, this );
var_DelCallback( p_playlist, "item-deleted", ItemDeleted, this );
pl_Release( p_playlist );
vlc_object_release( p_playlist );
}
/*****************************************************************************
......
......@@ -56,7 +56,7 @@ playlist_t *vlclua_get_playlist_internal( lua_State *L )
void vlclua_release_playlist_internal( playlist_t *p_playlist )
{
pl_Release( p_playlist );
vlc_object_release( p_playlist );
}
static int vlclua_playlist_prev( lua_State * L )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment