diff options
-rw-r--r-- | engines/mads/sprites.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp index aa73fce712..19742e22b0 100644 --- a/engines/mads/sprites.cpp +++ b/engines/mads/sprites.cpp @@ -402,6 +402,7 @@ void SpriteSets::remove(int idx) { (*this)[idx] = nullptr; } else { do { + delete (*this)[size() - 1]; remove_at(size() - 1); } while (size() > 0 && (*this)[size() - 1] == nullptr); } |