added missing destructor in MsgMetaCache

This commit is contained in:
csoler 2020-08-15 18:54:00 +02:00
parent 243ba595f0
commit bb6706e996

View File

@ -39,6 +39,14 @@ template<class ID, class MetaDataClass> class t_MetaDataCache
{
public:
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 ; }
void setCacheUpToDate(bool b) { mCache_ContainsAllMetas = b; }