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

Modified Files:
        Compressor.cpp Compressor.h 
Log Message:

Fix memleak and sliders under wxGTK.


Index: Compressor.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Compressor.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- Compressor.cpp      16 May 2009 11:13:13 -0000      1.46
+++ Compressor.cpp      25 May 2009 11:17:01 -0000      1.47
@@ -59,6 +59,14 @@
        mLevelCircle = NULL;
 }
 
+EffectCompressor::~EffectCompressor()
+{
+   if (mCircle)
+      delete[] mCircle;
+   if (mLevelCircle)
+      delete[] mLevelCircle;
+}
+
 bool EffectCompressor::TransferParameters( Shuttle & shuttle )
 {
    shuttle.TransferDouble( wxT("Threshold"), mThresholdDB, -12.0f );
@@ -492,8 +500,9 @@
    }
    S.EndHorizontalLay();
 
-   S.StartMultiColumn(3, wxCENTER | wxALIGN_CENTER_VERTICAL);
+   S.StartMultiColumn(3, wxEXPAND | wxALIGN_CENTER_VERTICAL);
    {
+      S.SetStretchyCol(1);
       mThresholdLabel = S.AddVariableText(_("Threshold:"), true,
                                           wxALIGN_RIGHT | 
wxALIGN_CENTER_VERTICAL);
       S.SetStyle(wxSL_HORIZONTAL);

Index: Compressor.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Compressor.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Compressor.h        10 Jun 2008 03:38:17 -0000      1.18
+++ Compressor.h        25 May 2009 11:17:01 -0000      1.19
@@ -31,6 +31,7 @@
 public:
    
    EffectCompressor();
+   virtual ~EffectCompressor();
    
    virtual wxString GetEffectName() {
       return wxString(_("Compressor..."));


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