aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/gfx.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-17 22:37:25 +0530
committerEugene Sandulenko2019-09-03 17:17:22 +0200
commitbe1fcc2fa87f555840acfa2395071c8ccc9b61ef (patch)
tree97ec25a090595ce10213bb0e34609cdae9e3a99a /engines/hdb/gfx.cpp
parent14dbbdd852b6af56f509474df3d122ee04968526 (diff)
downloadscummvm-rg350-be1fcc2fa87f555840acfa2395071c8ccc9b61ef.tar.gz
scummvm-rg350-be1fcc2fa87f555840acfa2395071c8ccc9b61ef.tar.bz2
scummvm-rg350-be1fcc2fa87f555840acfa2395071c8ccc9b61ef.zip
HDB: Fix GfxCache memory leak
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r--engines/hdb/gfx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 2593198f06..8b2ac3dc62 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -39,6 +39,8 @@ Gfx::Gfx() {
}
Gfx::~Gfx() {
+ for (uint i = 0; i < _gfxCache->size(); i++)
+ delete _gfxCache->operator[](i);
delete _gfxCache;
delete _sines;
delete _cosines;