From 5b72d1606316a05fb0121b4244583b3435ea0db8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 May 2011 19:43:36 +0300 Subject: Call cleanOrphans after disconnecting from server. --- src/client.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 29c464180..d512ac6e4 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -793,6 +793,9 @@ int Client::exec() { delete game; game = 0; + ResourceManager *resman = ResourceManager::getInstance(); + if (resman) + resman->cleanOrphans(); } mOldState = mState; -- cgit v1.2.3-60-g2f50