mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 21:35:34 +00:00
plugging found leaks
LEAK from G:\GameDev\GithubRepo\Torque3D\Engine\source\console/consoleObject.h:686 - leak around props remaining after the const_cast free it up LEAK around sound asset - assetEnumNameConcat was creating a leak.
This commit is contained in:
parent
8f856dd7cd
commit
15ff382469
2 changed files with 9 additions and 2 deletions
|
|
@ -705,7 +705,9 @@ public:
|
|||
smPropertyTable = _smPropertyTable;
|
||||
|
||||
const_cast<EngineTypeInfo*>(mTypeInfo)->mPropertyTable = &_smPropertyTable;
|
||||
|
||||
|
||||
// After we hand it off, immediately delete if safe:
|
||||
delete[] props;
|
||||
// Let the base finish up.
|
||||
AbstractClassRep::init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue