diff options
-rw-r--r-- | engines/sci/engine/game.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index 8bec94736b..04a410d51b 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -663,8 +663,7 @@ int game_init(EngineState *s) { } int game_exit(EngineState *s) { - if (s->execution_stack) - free(s->execution_stack); + free(s->execution_stack); if (!s->successor) { sfx_exit(&s->sound); @@ -674,19 +673,15 @@ int game_exit(EngineState *s) { delete s->seg_manager; - if (s->synonyms_nr) { - free(s->synonyms); - s->synonyms = NULL; - s->synonyms_nr = 0; - } + free(s->synonyms); + s->synonyms = NULL; + s->synonyms_nr = 0; sciprintf("Freeing miscellaneous data...\n"); // TODO Free parser segment here - if (send_calls_allocated) { - free(send_calls); - send_calls_allocated = 0; - } + free(send_calls); + send_calls_allocated = 0; // TODO Free scripts here |