diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index 249c2ae16..4d6b2360f 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -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;