Fix a memory leak. Better TaggedCache logging.

This commit is contained in:
JoelKatz
2012-11-01 07:14:45 -07:00
parent d9ff4f2ad4
commit 7372d4423f
5 changed files with 27 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ SETUP_LOG();
DECLARE_INSTANCE(HashedObject);
HashedObjectStore::HashedObjectStore(int cacheSize, int cacheAge) :
mCache(cacheSize, cacheAge), mWritePending(false)
mCache("HashedObjectStore", cacheSize, cacheAge), mWritePending(false)
{
mWriteSet.reserve(128);
}