REVIEW: Memory Leak - UniformFactoryImpl::getUniform()

13,800 bytes in 69 blocks are indirectly lost
This commit is contained in:
Scott Giese 2020-08-22 17:36:43 -05:00
parent bcb22691fc
commit ea53e9af0c

View File

@ -145,6 +145,7 @@ ref_ptr<Uniform> UniformFactoryImpl::getUniform( Effect * effect,
}
SG_LOG(SG_GL,SG_DEBUG,"new uniform " << name << " value " << uniformCache.size());
// REVIEW: Memory Leak - 13,800 bytes in 69 blocks are indirectly lost
uniformCache[key] = uniform = new Uniform;
uniform->setName(name);