From 69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 May 2017 19:18:50 +0300 Subject: Fix memory leak in itemcontainer cell image. --- src/gui/widgets/itemcontainer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-60-g2f50