Deallocate importer in RestoreState

This commit is contained in:
Michel Breyer
2019-09-04 13:10:34 +02:00
parent 25cc1fa386
commit c374d01587

View File

@@ -12152,6 +12152,7 @@ bool PhysicsServerCommandProcessor::processRestoreStateCommand(const struct Shar
b3Error("Error in restoreState: cannot load file %s\n", clientCmd.m_fileArguments.m_fileName); b3Error("Error in restoreState: cannot load file %s\n", clientCmd.m_fileArguments.m_fileName);
} }
} }
delete importer;
if (ok) if (ok)
{ {
serverCmd.m_type = CMD_RESTORE_STATE_COMPLETED; serverCmd.m_type = CMD_RESTORE_STATE_COMPLETED;