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:
Stephan Aßmus
2010-09-17 08:32:27 +00:00
parent 3c0f00c5ec
commit d174a87e1b
@@ -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();