diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-30 19:18:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-30 19:18:50 +0300 |
commit | 69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3 (patch) | |
tree | 89711d3e317672faa595b9903c7149d3d9b7dbea /src/gui/widgets/itemcontainer.cpp | |
parent | 439704d300230d97716e9c3411e3862e8681c434 (diff) | |
download | plus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.gz plus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.bz2 plus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.tar.xz plus-69dbc9f9c73c3ec07b6d99f67cd59739df39d7d3.zip |
Fix memory leak in itemcontainer cell image.
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 5 |
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); |