1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-07 03:56:28 +02:00

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

In those case the pl_* API doesn't seems convienent/well used.
This commit is contained in:
Pierre d'Herbemont 2008-08-02 05:24:36 +02:00
parent 875cd3dde6
commit 7ca4e3eb62
4 changed files with 4 additions and 4 deletions

View File

@ -354,7 +354,7 @@ InterfaceWindow::~InterfaceWindow()
}
if( p_playlist )
{
pl_Release( p_playlist );
vlc_object_release( p_playlist );
}
#if 0
if( fPlaylistWindow )

View File

@ -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 );
}
/**********************************************************************

View File

@ -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 );
}
/*****************************************************************************

View File

@ -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 )