diff options
Diffstat (limited to 'gui/ThemeData.h')
-rw-r--r-- | gui/ThemeData.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gui/ThemeData.h b/gui/ThemeData.h index 699c5ae6ce..a1f27e1c9b 100644 --- a/gui/ThemeData.h +++ b/gui/ThemeData.h @@ -58,14 +58,7 @@ struct WidgetDrawData { /** Texture where the cached widget is stored. */ Graphics::Surface *_surfaceCache; - ~WidgetDrawData() { - _steps.clear(); - - if (_surfaceCache) { - _surfaceCache->free(); - delete _surfaceCache; - } - } + ~WidgetDrawData(); }; class ThemeItem { |