diff --git a/src/atlas.cpp b/src/atlas.cpp index 1009f42e..5e500d4d 100644 --- a/src/atlas.cpp +++ b/src/atlas.cpp @@ -143,6 +143,12 @@ Atlas::Atlas(const QString &path, QObject *parent) : Map(parent) _valid = true; } +Atlas::~Atlas() +{ + for (int i = 0; i < _maps.size(); i++) + delete _maps.at(i); +} + QRectF Atlas::bounds() const { QSizeF s(0, 0); diff --git a/src/atlas.h b/src/atlas.h index c2f9a5c8..9970a5c1 100644 --- a/src/atlas.h +++ b/src/atlas.h @@ -12,6 +12,7 @@ class Atlas : public Map public: Atlas(const QString &path, QObject *parent = 0); + ~Atlas(); const QString &name() const {return _name;}