aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/smush/codec47.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp
index ed3613beca..08238d5ba0 100644
--- a/scumm/smush/codec47.cpp
+++ b/scumm/smush/codec47.cpp
@@ -537,6 +537,9 @@ void Codec47Decoder::deinit() {
_deltaBufs[0] = NULL;
_deltaBufs[1] = NULL;
}
+}
+
+Codec47Decoder::~Codec47Decoder() {
if (_tableBig) {
free(_tableBig);
_tableBig = NULL;
@@ -545,9 +548,6 @@ void Codec47Decoder::deinit() {
free(_tableSmall);
_tableSmall = NULL;
}
-}
-
-Codec47Decoder::~Codec47Decoder() {
deinit();
}