If we still have our own BBufferGroup separate from
the used BBufferGroup (from consumer), make sure to delete that one as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38687 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -473,6 +473,8 @@ VideoProducer::Disconnect(const media_source& source,
|
||||
// Always delete the buffer group, even if it is not ours.
|
||||
// (See BeBook::SetBufferGroup()).
|
||||
delete fUsedBufferGroup;
|
||||
if (fBufferGroup != fUsedBufferGroup)
|
||||
delete fBufferGroup;
|
||||
fUsedBufferGroup = NULL;
|
||||
fBufferGroup = NULL;
|
||||
fLock.Unlock();
|
||||
|
||||
Reference in New Issue
Block a user