Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv30290
Modified Files:
Sequence.cpp
Log Message:
Fix memleak (this one was a pain to find and has been there since day 1)
Index: Sequence.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Sequence.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- Sequence.cpp 2 Feb 2009 16:14:43 -0000 1.55
+++ Sequence.cpp 23 Mar 2009 20:11:12 -0000 1.56
@@ -1564,10 +1564,8 @@
} else {
// The sample where we begin deletion happens to fall
// right on the end of a block.
- if (b0 != b1) {
- mDirManager->Deref(mBlock->Item(b1)->f);
- delete mBlock->Item(b1);
- }
+ mDirManager->Deref(mBlock->Item(b1)->f);
+ delete mBlock->Item(b1);
}
// Copy the remaining blocks over from the old array
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs