From 3c7ec0569a4fce157e608021133bdc6cac679c10 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jun 2011 15:39:25 +0300 Subject: Zero variables after calling decRef(). --- src/gui/emotepopup.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/emotepopup.cpp') diff --git a/src/gui/emotepopup.cpp b/src/gui/emotepopup.cpp index d23443a2f..3a754d0e3 100644 --- a/src/gui/emotepopup.cpp +++ b/src/gui/emotepopup.cpp @@ -77,7 +77,10 @@ EmotePopup::EmotePopup(): EmotePopup::~EmotePopup() { if (mSelectionImage) + { mSelectionImage->decRef(); + mSelectionImage = 0; + } } void EmotePopup::draw(gcn::Graphics *graphics) -- cgit v1.2.3-70-g09d2