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/gui/widgets/tabs/setup_players.cpp | |
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/gui/widgets/tabs/setup_players.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_players.cpp | 6 |
1 files changed, 6 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); +} |