diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/item.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/item.cpp b/src/item.cpp index d484f64cb..1311a7354 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -54,6 +54,11 @@ Item::~Item() mImage->decRef(); mImage = nullptr; } + if (mDrawImage) + { + mDrawImage->decRef(); + mDrawImage = nullptr; + } } void Item::setId(int id, unsigned char color) |