Fix memory leak when caching various Layout Blockdata sets
This commit is contained in:
parent
21af92b856
commit
6546bcbbd4
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ class Blockdata : public QObject
|
|||
Q_OBJECT
|
||||
public:
|
||||
explicit Blockdata(QObject *parent = 0);
|
||||
~Blockdata() {
|
||||
if (blocks) delete blocks;
|
||||
}
|
||||
|
||||
public:
|
||||
QList<Block> *blocks = NULL;
|
||||
|
|
Loading…
Reference in a new issue