summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index c86497f15..0850ba909 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -59,10 +59,11 @@
#ifdef DEBUG_DUMP_LEAKS1
#include "resources/image.h"
#include "resources/resource.h"
-#include "resources/resourcemanager.h"
#include "resources/subimage.h"
#endif
+#include "resources/resourcemanager.h"
+
#include "utils/gettext.h"
#include "utils/process.h"
@@ -344,6 +345,15 @@ impHandler0(clear)
chatWindow->clearTab();
}
+impHandler0(cleanGraphics)
+{
+ ResourceManager *const resman = ResourceManager::getInstance();
+ while(resman->cleanOrphans(true));
+
+ if (debugChatTab)
+ debugChatTab->chatLog("cache cleaned");
+}
+
impHandler(join)
{
if (!tab)