diff options
Diffstat (limited to 'src/libs/module')
-rw-r--r-- | src/libs/module/module.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libs/module/module.cpp b/src/libs/module/module.cpp index 80ed035b..7584ebc7 100644 --- a/src/libs/module/module.cpp +++ b/src/libs/module/module.cpp @@ -45,11 +45,14 @@ get_world() void destroy_world() { + if (world) { #ifdef HAVE_SLV2 - slv2_world_free(world->slv2_world); + slv2_world_free(world->slv2_world); #endif - delete world; + delete world; + world = NULL; + } } |