aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ThemeData.cpp')
-rw-r--r--gui/ThemeData.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/ThemeData.cpp b/gui/ThemeData.cpp
index fbe5bb701d..48a922e600 100644
--- a/gui/ThemeData.cpp
+++ b/gui/ThemeData.cpp
@@ -133,4 +133,13 @@ void ThemeItemBitmap::drawSelf(bool draw, bool restore) {
_engine->addDirtyRect(_area);
}
+WidgetDrawData::~WidgetDrawData() {
+ _steps.clear();
+
+ if (_surfaceCache) {
+ _surfaceCache->free();
+ delete _surfaceCache;
+ }
+}
+
}