Commit 929a7600 authored by Cyrille Berger's avatar Cyrille Berger

some more leak fixes

svn path=/trunk/koffice/; revision=768932
parent bf05b8ba
......@@ -76,6 +76,12 @@ KisFilter::KisFilter(const KoID& id, const KoID & category, const QString & entr
setBookmarkManager(new KisBookmarkedConfigurationManager(configEntryGroup(), new KisFilterConfigurationFactory(id.id(), 1) ));
}
KisFilter::~KisFilter()
{
delete d->bookmarkManager;
delete d;
}
KisFilterConfiguration * KisFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
return new KisFilterConfiguration(id(), 0);
......
......@@ -63,7 +63,7 @@ public:
* Construct a Krita filter
*/
KisFilter(const KoID& id, const KoID & category, const QString & entry);
virtual ~KisFilter() {}
virtual ~KisFilter();
public:
......
......@@ -46,7 +46,7 @@ KisColorSpaceSelector::KisColorSpaceSelector(QWidget* parent) : QWidget(parent),
KisColorSpaceSelector::~KisColorSpaceSelector()
{
delete d;
}
......
......@@ -76,6 +76,7 @@ KisFilterHandler::KisFilterHandler(KisFilterManager* parent, KisFilterSP f, KisV
KisFilterHandler::~KisFilterHandler()
{
delete m_d;
}
void KisFilterHandler::showDialog()
......
......@@ -78,6 +78,7 @@ KisTool::KisTool( KoCanvasBase * canvas, const QCursor & cursor )
KisTool::~KisTool()
{
delete d;
}
void KisTool::activate(bool )
......
......@@ -73,6 +73,14 @@ KoColorSpace::KoColorSpace(const QString &id, const QString &name, KoMixColorsOp
KoColorSpace::~KoColorSpace()
{
foreach(KoCompositeOp* op, d->compositeOps.values())
{
delete op;
}
foreach(KoChannelInfo * channel, d->channels)
{
delete channel;
}
KoColorSpaceRegistry::instance()->colorConversionCache()->colorSpaceIsDestroyed(this);
delete d->mixColorsOp;
delete d->convolutionOp;
......
......@@ -189,6 +189,7 @@ class KoLcmsColorSpace : public KoColorSpaceAbstract<_CSTraits>, public KoLcmsIn
cmsDeleteTransform( d->defaultFromRGB );
cmsDeleteTransform( d->defaultToRGB );
delete d->colorProfile;
delete d->qcolordata;
delete d;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment