mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-28 03:25:30 -05:00
Fix memory leak when caching various Layout Blockdata sets
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user