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

Modified Files:
        TrackPanel.cpp 
Log Message:

Fix memleaks and a couple of warnings.


Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.450
retrieving revision 1.451
diff -u -d -r1.450 -r1.451
--- TrackPanel.cpp      16 May 2009 11:24:35 -0000      1.450
+++ TrackPanel.cpp      25 May 2009 11:23:48 -0000      1.451
@@ -398,9 +398,10 @@
 
    pCursor = new wxCursor((const char *)bits, w, h,
                           HotX-HotAdjust, HotY-HotAdjust,
-                          (const char *)maskBits,
-                          new wxColour(0, 0, 0),
-                          new wxColour(255, 255, 255));
+                          (const char *)maskBits);
+
+   delete [] bits;
+   delete [] maskBits;
 
 #else
    Image.SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_X, HotX-HotAdjust );
@@ -572,6 +573,8 @@
 
    delete mSnapManager;
 
+   delete mAx;
+
    DeleteMenus();
 }
 
@@ -1945,7 +1948,9 @@
          if (pTrack == eTrack) {
             break;
          }
-      } while (pTrack = iter.Next());
+
+         pTrack = iter.Next();
+      } while (pTrack);
    }
 
    ExtendSelection(x, r.x, clickedTrack);
@@ -6762,8 +6767,6 @@
       return wxRect(0,0,0,0);
    }
 
-   bool linked = target->GetLinked();
-
    wxRect r(0,
             target->GetY() - mViewInfo->vpos,
             GetSize().GetWidth(),


------------------------------------------------------------------------------
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