summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/icon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/widgets/icon.cpp')
-rw-r--r--src/guichan/widgets/icon.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/guichan/widgets/icon.cpp b/src/guichan/widgets/icon.cpp
index 687fadeab..a040dcc83 100644
--- a/src/guichan/widgets/icon.cpp
+++ b/src/guichan/widgets/icon.cpp
@@ -83,15 +83,14 @@ namespace gcn
if (mInternalImage)
{
delete mImage;
+ mImage = 0;
}
}
void Icon::setImage(const Image* image)
{
if (mInternalImage)
- {
delete mImage;
- }
mImage = image;
mInternalImage = false;