1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Added missing destructor

This commit is contained in:
Martin Tůma 2017-04-01 06:10:36 +02:00
parent a56ad8a933
commit bfcc577f64
2 changed files with 7 additions and 0 deletions

View File

@ -143,6 +143,12 @@ Atlas::Atlas(const QString &path, QObject *parent) : Map(parent)
_valid = true; _valid = true;
} }
Atlas::~Atlas()
{
for (int i = 0; i < _maps.size(); i++)
delete _maps.at(i);
}
QRectF Atlas::bounds() const QRectF Atlas::bounds() const
{ {
QSizeF s(0, 0); QSizeF s(0, 0);

View File

@ -12,6 +12,7 @@ class Atlas : public Map
public: public:
Atlas(const QString &path, QObject *parent = 0); Atlas(const QString &path, QObject *parent = 0);
~Atlas();
const QString &name() const {return _name;} const QString &name() const {return _name;}