From 170aae70566003a30ab1f6f936364484f6a0a097 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Jun 2011 16:20:49 +0300 Subject: Clean variables after deleting. --- src/guichan/widgets/icon.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/guichan/widgets/icon.cpp') 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; -- cgit v1.2.3-70-g09d2