From 4eeb20aae588b9c3d1c4ed4462306391e20e58fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Jul 2015 01:51:12 +0300 Subject: Fix memory leak on exit. --- src/gui/widgets/tabs/setup_players.cpp | 6 ++++++ src/gui/widgets/tabs/setup_players.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'src/gui/widgets') 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: -- cgit v1.2.3-70-g09d2