diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-01 16:20:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-01 16:20:49 +0300 |
commit | 170aae70566003a30ab1f6f936364484f6a0a097 (patch) | |
tree | 44002a7f43d1fdd8ba8253e729da825bd82142c3 /src/guichan/widgets/imagebutton.cpp | |
parent | 09ebcebf32be3842d6158c3145492fbf2959440e (diff) | |
download | manaplus-170aae70566003a30ab1f6f936364484f6a0a097.tar.gz manaplus-170aae70566003a30ab1f6f936364484f6a0a097.tar.bz2 manaplus-170aae70566003a30ab1f6f936364484f6a0a097.tar.xz manaplus-170aae70566003a30ab1f6f936364484f6a0a097.zip |
Clean variables after deleting.
Diffstat (limited to 'src/guichan/widgets/imagebutton.cpp')
-rw-r--r-- | src/guichan/widgets/imagebutton.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/guichan/widgets/imagebutton.cpp b/src/guichan/widgets/imagebutton.cpp index a340face3..141b17b79 100644 --- a/src/guichan/widgets/imagebutton.cpp +++ b/src/guichan/widgets/imagebutton.cpp @@ -81,13 +81,19 @@ namespace gcn ImageButton::~ImageButton() { if (mInternalImage) + { delete mImage; + mImage = 0; + } } void ImageButton::setImage(const Image* image) { if (mInternalImage) + { delete mImage; + mImage = 0; + } mImage = image; mInternalImage = false; |