REVIEW: Memory Leak - Effect::buildAttribute()

144,400 bytes in 38 blocks are indirectly lost
This commit is contained in:
Scott Giese 2020-08-22 16:08:58 -05:00
parent ce019a169b
commit e3ce59ee80

View File

@ -1101,6 +1101,9 @@ struct UniformBuilder :public PassAttributeBuilder
uniform = colorMode[val]; uniform = colorMode[val];
} }
} }
// REVIEW: Memory Leak - 144,400 bytes in 38 blocks are indirectly lost
// Leak occurs within OSG, likely caused by passing a raw pointer
pass->addUniform(uniform.get()); pass->addUniform(uniform.get());
if (positionedProp && positionedProp->getBoolValue() && uniformType == Uniform::FLOAT_VEC4) { if (positionedProp && positionedProp->getBoolValue() && uniformType == Uniform::FLOAT_VEC4) {
osg::Vec4 offset; osg::Vec4 offset;