Commit 64b4d3dc authored by Thorsten Zachmann's avatar Thorsten Zachmann

Fix memory leaks.

parent c2eaf9ef
......@@ -31,6 +31,11 @@ KoMarkerSharedLoadingData::KoMarkerSharedLoadingData(const QHash<QString, KoMark
d->lookupTable = lookupTable;
}
KoMarkerSharedLoadingData::~KoMarkerSharedLoadingData()
{
delete d;
}
KoMarker *KoMarkerSharedLoadingData::marker(const QString &name) const
{
return d->lookupTable.value(name, 0);
......
......@@ -33,6 +33,7 @@ class KoMarkerSharedLoadingData : public KoSharedLoadingData
{
public:
KoMarkerSharedLoadingData(const QHash<QString, KoMarker *> &lookupTable);
virtual ~KoMarkerSharedLoadingData();
KoMarker *marker(const QString &name) const;
......
......@@ -123,6 +123,7 @@ void KoShapeContainerDefaultModel::remove(KoShape *child)
if (relation == 0)
return;
d->relations.removeAll(relation);
delete relation;
}
int KoShapeContainerDefaultModel::count() const
......
......@@ -185,6 +185,9 @@ KoPathTool::KoPathTool(KoCanvasBase *canvas)
KoPathTool::~KoPathTool()
{
delete m_activeHandle;
delete m_activeSegment;
delete m_currentStrategy;
}
QList<QWidget *> KoPathTool::createOptionWidgets()
......
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