summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-27 19:43:36 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-27 19:43:36 +0300
commit5b72d1606316a05fb0121b4244583b3435ea0db8 (patch)
tree14ccdadbd5319d27335657fae7ca348ab1ad268f /src/resources/resourcemanager.h
parent5c0b932b4c3dcd339d0ef123c24fb7de427162d5 (diff)
downloadmv-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.gz
mv-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.bz2
mv-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.xz
mv-5b72d1606316a05fb0121b4244583b3435ea0db8.zip
Call cleanOrphans after disconnecting from server.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index 8d1070463..71cbdce62 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -248,13 +248,14 @@ class ResourceManager
{ return &mOrphanedResources; }
#endif
+ void cleanOrphans(bool always = false);
+
private:
/**
* Deletes the resource after logging a cleanup message.
*/
static void cleanUp(Resource *resource);
- void cleanOrphans();
static ResourceManager *instance;
std::set<SDL_Surface*> deletedSurfaces;