summaryrefslogtreecommitdiff
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
parent439704d300230d97716e9c3411e3862e8681c434 (diff)
downloadmanaplus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.gz
manaplus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.bz2
manaplus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.xz
manaplus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.zip
Fix memory leak in itemcontainer cell image.
-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);