[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/krita/plugins/filters
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2008-07-24 5:51:41
Message-ID: 1216878701.320188.4335.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 837188 by rempt:

Fix memory leaks


 M  +3 -2      colorsfilters/colorsfilters.cc  
 M  +2 -1      colorsfilters/kis_perchannel_filter.cc  
 M  +2 -1      tests/kis_crash_filter_test.cpp  


--- trunk/koffice/krita/plugins/filters/colorsfilters/colorsfilters.cc #837187:837188
@@ -95,7 +95,7 @@
     setSupportsPainting( false );
     setSupportsThreading( false );
     setColorSpaceIndependence( TO_LAB16 );
-    
+
 }
 
 bool KisAutoContrast::workWith(const KoColorSpace* cs) const
@@ -246,6 +246,7 @@
         }
         if (progressUpdater) progressUpdater->setProgress(pixelsProcessed / \
totalCost);  }
+    delete cfg;
     delete adj;
 }
 
@@ -291,7 +292,7 @@
         gc.bitBlt(dstTopLeft.x(), dstTopLeft.y(), COMPOSITE_COPY, src, \
srcTopLeft.x(), srcTopLeft.y(), size.width(), size.height());  gc.end();
     }
-    
+
     KoColorTransformation * m_adj = src->colorSpace()->createDesaturateAdjustment();
 
     KisRectIteratorPixel iter = dst->createRectIterator(dstTopLeft.x(), \
                dstTopLeft.y(), size.width(), size.height(), dstInfo.selection());
--- trunk/koffice/krita/plugins/filters/colorsfilters/kis_perchannel_filter.cc \
#837187:837188 @@ -201,7 +201,8 @@
     setSupportsPreview(true);
     setSupportsIncrementalPainting(false);
     setColorSpaceIndependence(TO_LAB16);
-    setBookmarkManager(new KisBookmarkedConfigurationManager(configEntryGroup(), new \
KisPerChannelFilterConfigurationFactory())); +    setBookmarkManager(new \
KisBookmarkedConfigurationManager(configEntryGroup(), +                       new \
KisPerChannelFilterConfigurationFactory()));  }
 
 KisFilterConfigWidget * KisPerChannelFilter::createConfigurationWidget(QWidget \
                *parent, KisPaintDeviceSP dev, const KisImageSP image ) const
--- trunk/koffice/krita/plugins/filters/tests/kis_crash_filter_test.cpp \
#837187:837188 @@ -16,6 +16,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
+#include <KoColorProfile.h>
 #include "kis_crash_filter_test.h"
 #include <qtest_kde.h>
 #include "filter/kis_filter_configuration.h"
@@ -53,7 +54,7 @@
         s = in.readAll();
         kfc->fromXML( s );
     }
-    qDebug() << f->id() << ", " << cs->id();// << kfc->toXML() << "\n";
+    qDebug() << f->id() << ", " << cs->id() << ", " << cs->profile()->name();// << \
kfc->toXML() << "\n";  
     KisConstProcessingInformation src( dev,  QPoint(0, 0), 0 );
     KisProcessingInformation dst( dev, QPoint(0, 0), 0 );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic