summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-30 19:18:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-30 19:18:50 +0300
commit69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3 (patch)
tree89711d3e317672faa595b9903c7149d3d9b7dbea /src/gui/widgets
parent439704d300230d97716e9c3411e3862e8681c434 (diff)
downloadmanaverse-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.gz
manaverse-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.bz2
manaverse-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.xz
manaverse-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.zip
Fix memory leak in itemcontainer cell image.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 2578f3530..857467f63 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -280,6 +280,11 @@ ItemContainer::~ItemContainer()
mProtectedImg->decRef();
mProtectedImg = nullptr;
}
+ if (mCellBackgroundImg)
+ {
+ mCellBackgroundImg->decRef();
+ mCellBackgroundImg = nullptr;
+ }
if (theme)
theme->unload(mSkin);