[haiku-commits] r38687 - haiku/trunk/src/apps/mediaplayer/media_node_framework/video

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 17 Sep 2010 10:32:27 +0200 (CEST)

Author: stippi
Date: 2010-09-17 10:32:27 +0200 (Fri, 17 Sep 2010)
New Revision: 38687
Changeset: http://dev.haiku-os.org/changeset/38687

Modified:
   haiku/trunk/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp
Log:
If we still have our own BBufferGroup separate from
the used BBufferGroup (from consumer), make sure to
delete that one as well.


Modified: 
haiku/trunk/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp
===================================================================
--- 
haiku/trunk/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp   
    2010-09-17 08:06:55 UTC (rev 38686)
+++ 
haiku/trunk/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp   
    2010-09-17 08:32:27 UTC (rev 38687)
@@ -473,6 +473,8 @@
                // 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();


Other related posts:

  • » [haiku-commits] r38687 - haiku/trunk/src/apps/mediaplayer/media_node_framework/video - superstippi