diff options
Diffstat (limited to 'src/touchmanager.cpp')
-rw-r--r-- | src/touchmanager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp index 2f93a4ddc..0b2b85562 100644 --- a/src/touchmanager.cpp +++ b/src/touchmanager.cpp @@ -346,12 +346,9 @@ void TouchManager::unload(TouchItem *const item) { if (item) { - Theme *const theme = Theme::instance(); - if (!theme) - return; if (item->images) { - theme->unloadRect(*item->images); + Theme::unloadRect(*item->images); delete item->images; item->images = nullptr; if (item->icon) |