diff options
Diffstat (limited to 'engines/scumm/smush/smush_player.cpp')
-rw-r--r-- | engines/scumm/smush/smush_player.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp index bd6d582c99..225d7573bf 100644 --- a/engines/scumm/smush/smush_player.cpp +++ b/engines/scumm/smush/smush_player.cpp @@ -647,12 +647,8 @@ void SmushPlayer::handleTextResource(uint32 subType, int32 subSize, Common::Seek error("SmushPlayer::handleTextResource. Not handled flags: %d", flags); } - if (string != NULL) { - free (string); - } - if (string3 != NULL) { - free (string3); - } + free(string); + free(string3); } const char *SmushPlayer::getString(int id) { |