diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/npcdb.cpp | 1 | ||||
-rw-r--r-- | src/resources/resourcemanager.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp index 5cd6d20d..2f8d78d4 100644 --- a/src/resources/npcdb.cpp +++ b/src/resources/npcdb.cpp @@ -132,4 +132,3 @@ NPCDB::get(int id) return *(i->second); } } - diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index bebd17f8..3d42d92e 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -95,11 +95,15 @@ ResourceManager::~ResourceManager() void ResourceManager::cleanUp(Resource *res) { - logger->log("ResourceManager::~ResourceManager() cleaning up %d " + if (res->mRefCount > 0) + { + logger->log("ResourceManager::~ResourceManager() cleaning up %d " "reference%s to %s", res->mRefCount, (res->mRefCount == 1) ? "" : "s", res->mIdPath.c_str()); + } + delete res; } |