REVIEW: Memory Leak - condition::readAndConditions()
11,502 (1,560 direct, 9,942 indirect) bytes in 39 blocks are definitely lost
This commit is contained in:
parent
f210d6ba94
commit
bdd7878d19
@ -502,6 +502,7 @@ readNotCondition( SGPropertyNode *prop_root, const SGPropertyNode *node )
|
|||||||
static SGCondition *
|
static SGCondition *
|
||||||
readAndConditions( SGPropertyNode *prop_root, const SGPropertyNode *node )
|
readAndConditions( SGPropertyNode *prop_root, const SGPropertyNode *node )
|
||||||
{
|
{
|
||||||
|
// REVIEW: Memory Leak - 11,502 (1,560 direct, 9,942 indirect) bytes in 39 blocks are definitely lost
|
||||||
SGAndCondition * andCondition = new SGAndCondition;
|
SGAndCondition * andCondition = new SGAndCondition;
|
||||||
int nChildren = node->nChildren();
|
int nChildren = node->nChildren();
|
||||||
for (int i = 0; i < nChildren; i++) {
|
for (int i = 0; i < nChildren; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user