Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3564

Modified Files:
        NoteTrack.cpp NoteTrack.h 
Log Message:
Fix memleaks


Index: NoteTrack.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/NoteTrack.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- NoteTrack.cpp       16 May 2009 11:13:12 -0000      1.22
+++ NoteTrack.cpp       22 Jun 2009 08:49:25 -0000      1.23
@@ -56,6 +56,17 @@
    mLastMidiPosition = 0;
 }
 
+NoteTrack::~NoteTrack()
+{
+   if (mSerializationBuffer) {
+      delete [] mSerializationBuffer;
+   }
+
+   if (mSeq) {
+      delete mSeq;
+   }
+}
+
 Track *NoteTrack::Duplicate()
 {
    NoteTrack *duplicate = new NoteTrack(mDirManager);

Index: NoteTrack.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/NoteTrack.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- NoteTrack.h 6 Aug 2008 17:57:55 -0000       1.15
+++ NoteTrack.h 22 Jun 2009 08:49:26 -0000      1.16
@@ -24,11 +24,12 @@
 class DirManager;
 class Alg_seq;   // from "allegro.h"
 
-class NoteTrack:public Track {
+class AUDACITY_DLL_API NoteTrack:public Track {
  public:
    friend class TrackArtist;
 
    NoteTrack(DirManager * projDirManager);
+   virtual ~NoteTrack();
 
    virtual Track *Duplicate();
    


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to