Fix memory leak when caching various Layout Blockdata sets

This commit is contained in:
Marcus Huderle 2018-07-19 22:37:24 -05:00
parent 21af92b856
commit 6546bcbbd4

View file

@ -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;