REVIEW: Memory Leak - SGMaterial::read_properties()

61,560 bytes in 405 blocks are definitely lost
This commit is contained in:
Scott Giese 2020-08-22 16:57:21 -05:00
parent 53487ae732
commit 34ca004e95

View File

@ -412,6 +412,7 @@ SGMaterial::read_properties(const SGReaderWriterOptions* options,
if (props->hasChild("parameters")) {
parameters = props->getChild("parameters");
} else {
// REVIEW: Memory Leak - 61,560 bytes in 405 blocks are definitely lost
parameters = new SGPropertyNode();
}
}