Commit 79fd001a authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

fix memleak, part 2

the previous fix did not consider that ProFiles are a further
specialization of ProBlocks.

Reviewed-by: dt
Task-number: QTCREATORBUG-1003
parent 879f71c2
......@@ -115,6 +115,7 @@ public:
ProItem *m_proitems;
int m_blockKind;
friend class ProFile; // for the pseudo-virtual d'tor
ProItemRefCount m_refCount;
......@@ -190,6 +191,9 @@ public:
QString fileName() const { return m_fileName; }
QString directoryName() const { return m_directoryName; }
// d'tor is not virtual
void deref() { if (!m_refCount.deref()) delete this; }
QString m_fileName;
QString m_displayFileName;
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