mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 06:00:12 +00:00
Merge pull request #2397 from mbreyer/fix-leak-in-state-restore
Fix memory leak in RestoreState
This commit is contained in:
commit
6b95d12dc6
@ -12152,6 +12152,7 @@ bool PhysicsServerCommandProcessor::processRestoreStateCommand(const struct Shar
|
||||
b3Error("Error in restoreState: cannot load file %s\n", clientCmd.m_fileArguments.m_fileName);
|
||||
}
|
||||
}
|
||||
delete importer;
|
||||
if (ok)
|
||||
{
|
||||
serverCmd.m_type = CMD_RESTORE_STATE_COMPLETED;
|
||||
|
Loading…
Reference in New Issue
Block a user