From bfcc577f645bc640b0712deaa0c675d988f67443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 1 Apr 2017 06:10:36 +0200 Subject: [PATCH] Added missing destructor --- src/atlas.cpp | 6 ++++++ src/atlas.h | 1 + 2 files changed, 7 insertions(+) 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;}