summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
commit91fa2122a536770924bb2819bec4b79e76393d08 (patch)
tree93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/gui/itempopup.cpp
parent1a524dc9468fe532bc060a73ef736a68687aadca (diff)
downloadmanaplus-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz
manaplus-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2
manaplus-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz
manaplus-91fa2122a536770924bb2819bec4b79e76393d08.zip
Fix code style and small perfomance issues.
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r--src/gui/itempopup.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp
index feb9a050d..4b0501def 100644
--- a/src/gui/itempopup.cpp
+++ b/src/gui/itempopup.cpp
@@ -89,12 +89,9 @@ ItemPopup::~ItemPopup()
{
if (mIcon)
{
- Image *image = mIcon->getImage();
+ Image *const image = mIcon->getImage();
if (image)
- {
image->decRef();
- image = nullptr;
- }
}
}