diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-27 19:43:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-27 19:43:36 +0300 |
commit | 5b72d1606316a05fb0121b4244583b3435ea0db8 (patch) | |
tree | 14ccdadbd5319d27335657fae7ca348ab1ad268f /src/client.cpp | |
parent | 5c0b932b4c3dcd339d0ef123c24fb7de427162d5 (diff) | |
download | mv-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.gz mv-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.bz2 mv-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.xz mv-5b72d1606316a05fb0121b4244583b3435ea0db8.zip |
Call cleanOrphans after disconnecting from server.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |