REVIEW: Memory Leak - Effect::buildAttribute()
144,400 bytes in 38 blocks are indirectly lost
This commit is contained in:
parent
ce019a169b
commit
e3ce59ee80
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user