summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-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);