Mem leak fixed in sound buffer & parent invert node

This commit is contained in:
Benoit Bolsee
2008-03-01 19:29:01 +00:00
parent 3cf5b1d6fb
commit 44314581dc
2 changed files with 11 additions and 6 deletions

View File

@@ -128,6 +128,11 @@ ActivateDestructionCallback(
// Call client provided destruction function on this!
m_callbacks.m_destructionfunc(this,m_SGclientObject,m_SGclientInfo);
}
else
{
// no callback but must still destroy the node to avoid memory leak
delete this;
}
}
void