mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-17 13:24:15 -05:00
added missing destructor in MsgMetaCache
This commit is contained in:
parent
243ba595f0
commit
bb6706e996
@ -39,6 +39,14 @@ template<class ID, class MetaDataClass> class t_MetaDataCache
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
t_MetaDataCache() : mCache_ContainsAllMetas(false) {}
|
t_MetaDataCache() : mCache_ContainsAllMetas(false) {}
|
||||||
|
virtual ~t_MetaDataCache()
|
||||||
|
{
|
||||||
|
for(auto it: mMetas)
|
||||||
|
delete it.second;
|
||||||
|
|
||||||
|
for(auto it: mOldCachedItems)
|
||||||
|
delete it.second;
|
||||||
|
}
|
||||||
|
|
||||||
bool isCacheUpToDate() const { return mCache_ContainsAllMetas ; }
|
bool isCacheUpToDate() const { return mCache_ContainsAllMetas ; }
|
||||||
void setCacheUpToDate(bool b) { mCache_ContainsAllMetas = b; }
|
void setCacheUpToDate(bool b) { mCache_ContainsAllMetas = b; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user