increase explicit refcnt for playlists when used by a PlaylistSource
This commit is contained in:
parent
d1433992fb
commit
4d6ad4a499
@ -52,6 +52,7 @@ PlaylistSource::PlaylistSource (Session& s, const ID& orig, const std::string& n
|
||||
_flags = Flag (_flags & ~(Writable|CanRename|Removable|RemovableIfEmpty|RemoveAtDestroy|Destructive));
|
||||
|
||||
_playlist = p;
|
||||
_playlist->use ();
|
||||
_playlist_offset = begin;
|
||||
_playlist_length = len;
|
||||
|
||||
@ -72,6 +73,7 @@ PlaylistSource::PlaylistSource (Session& s, const XMLNode& node)
|
||||
|
||||
PlaylistSource::~PlaylistSource ()
|
||||
{
|
||||
_playlist->release ();
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user