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

Modified Files:
        Track.cpp TrackPanel.cpp 
Log Message:

Fix that pesky mAx memleak when wxAccessibility is 

Index: Track.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Track.cpp,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- Track.cpp   7 Apr 2009 07:01:35 -0000       1.60
+++ Track.cpp   26 May 2009 01:42:48 -0000      1.61
@@ -585,7 +585,7 @@
 void TrackList::Remove(Track * t, bool deletetrack)
 {
    if (t) {
-      const TrackListNode *node = t->GetNode();
+      TrackListNode *node = (TrackListNode *) t->GetNode();
 
       t->SetOwner(NULL, NULL);
       if (deletetrack) {

Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.452
retrieving revision 1.453
diff -u -d -r1.452 -r1.453
--- TrackPanel.cpp      25 May 2009 23:50:30 -0000      1.452
+++ TrackPanel.cpp      26 May 2009 01:42:48 -0000      1.453
@@ -573,6 +573,10 @@
    delete mSnapManager;
 
    DeleteMenus();
+
+#if !wxUSE_ACCESSIBILITY
+   delete mAx;
+#endif
 }
 
 void TrackPanel::BuildMenus(void)


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to