Commit e97a2168 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix memory leak

parent 0dd42839
......@@ -50,8 +50,8 @@ public:
using KisPropertiesConfiguration::setProperty;
void setProperty(const QString & name, const QVariant & value);
private:
KisLockedProperties* m_lockedProperties;
const KisPropertiesConfiguration* m_parent;
KisLockedProperties *m_lockedProperties;
const KisPropertiesConfiguration *m_parent;
};
#endif // KIS_LOCKED_PROPERTIES_PROXY_H
......@@ -24,6 +24,11 @@ KisLockedPropertiesServer::KisLockedPropertiesServer()
m_propertiesFromLocked = false;
}
KisLockedPropertiesServer::~KisLockedPropertiesServer()
{
delete m_lockedProperties;
}
KisLockedPropertiesProxy* KisLockedPropertiesServer::createLockedPropertiesProxy(const KisPropertiesConfiguration* config)
{
KisLockedPropertiesProxy* m = new KisLockedPropertiesProxy(config, lockedProperties());
......
......@@ -36,8 +36,9 @@ class KisLockedPropertiesProxy;
class KRITAIMAGE_EXPORT KisLockedPropertiesServer: public QObject
{
public:
KisLockedPropertiesServer();
static KisLockedPropertiesServer* instance();
KisLockedProperties* lockedProperties();
void addToLockedProperties(KisPropertiesConfiguration *p);
void removeFromLockedProperties(KisPropertiesConfiguration *p);
......@@ -48,7 +49,11 @@ public:
private:
KisLockedProperties* m_lockedProperties;
KisLockedPropertiesServer();
~KisLockedPropertiesServer();
KisLockedProperties *m_lockedProperties;
bool m_propertiesFromLocked;
};
......
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