diff --git a/crates/bevy_ecs/src/world/mod.rs b/crates/bevy_ecs/src/world/mod.rs index cc89646b46..4bb30d1794 100644 --- a/crates/bevy_ecs/src/world/mod.rs +++ b/crates/bevy_ecs/src/world/mod.rs @@ -162,6 +162,8 @@ impl Drop for World { drop(unsafe { Box::from_raw(self.command_queue.bytes.as_ptr()) }); // SAFETY: Pointers in internal command queue are only invalidated here drop(unsafe { Box::from_raw(self.command_queue.cursor.as_ptr()) }); + // SAFETY: Pointers in internal command queue are only invalidated here + drop(unsafe { Box::from_raw(self.command_queue.panic_recovery.as_ptr()) }); } }