summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp5
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)