diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-30 01:51:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-30 01:51:12 +0300 |
commit | 4eeb20aae588b9c3d1c4ed4462306391e20e58fc (patch) | |
tree | 7adbdfe3f4eabf8eb1aaf24e3d1237abca1e2d18 /src | |
parent | 680907bf9095518b99799860d647756c1ee72545 (diff) | |
download | manaplus-4eeb20aae588b9c3d1c4ed4462306391e20e58fc.tar.gz manaplus-4eeb20aae588b9c3d1c4ed4462306391e20e58fc.tar.bz2 manaplus-4eeb20aae588b9c3d1c4ed4462306391e20e58fc.tar.xz manaplus-4eeb20aae588b9c3d1c4ed4462306391e20e58fc.zip |
Fix memory leak on exit.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/tabs/setup_players.cpp | 6 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_players.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/setup_players.cpp b/src/gui/widgets/tabs/setup_players.cpp index cd28c8d69..4b04568ee 100644 --- a/src/gui/widgets/tabs/setup_players.cpp +++ b/src/gui/widgets/tabs/setup_players.cpp @@ -29,6 +29,7 @@ #include "gui/widgets/scrollarea.h" #include "gui/widgets/setupitem.h" +#include "utils/delete2.h" #include "utils/gettext.h" #include "debug.h" @@ -130,3 +131,8 @@ Setup_Players::Setup_Players(const Widget2 *const widget) : setDimension(Rect(0, 0, 550, 350)); } + +Setup_Players::~Setup_Players() +{ + delete2(mBadgesList); +} diff --git a/src/gui/widgets/tabs/setup_players.h b/src/gui/widgets/tabs/setup_players.h index 801839649..f8df9538f 100644 --- a/src/gui/widgets/tabs/setup_players.h +++ b/src/gui/widgets/tabs/setup_players.h @@ -32,6 +32,8 @@ class Setup_Players final : public SetupTabScroll public: explicit Setup_Players(const Widget2 *const widget); + ~Setup_Players(); + A_DELETE_COPY(Setup_Players) private: |