Commit ef516b67 authored by David Faure's avatar David Faure
Browse files

Fix memory leaks (found by ASAN)

They don't matter much in practice, except that they make an
ASAN-enabled build abort when protocolgen is running.

Test Plan: make protocolgen && make -j1, in an ASAN build => protocolgen no longer aborts the build

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision:
parent ab5a4e9d
......@@ -231,6 +231,11 @@ PropertyNode::PropertyNode(const QString &name, const QString &type, ClassNode *
, mAsReference(false)
delete mSetter;
QString PropertyNode::type() const
return mType;
......@@ -36,7 +36,7 @@ public:
Node(NodeType type, Node *parent);
virtual ~Node();
NodeType type() const;
Node *parent() const;
......@@ -164,6 +164,7 @@ public:
PropertyNode(const QString &name, const QString &type, ClassNode *parent);
QString type() const;
QString name() const;
Supports Markdown
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