aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-05-05 07:20:49 +0200
committerTorbjörn Andersson2014-05-05 07:20:49 +0200
commitb565d0bf24128f18aac3a5daae48415535f97676 (patch)
treeb7dd563524746d20b432f88641609725fe6b2ce5 /engines
parentc6d36044c5343b6cbc476d3e06be06963c35a9ba (diff)
downloadscummvm-rg350-b565d0bf24128f18aac3a5daae48415535f97676.tar.gz
scummvm-rg350-b565d0bf24128f18aac3a5daae48415535f97676.tar.bz2
scummvm-rg350-b565d0bf24128f18aac3a5daae48415535f97676.zip
NEVERHOOD: Fix memory leak in BaseSurface
I hope this will help the memory leak reported as part of bug #6513 but my computer isn't quite up to the task of doing any extensive Valgrind testing.
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/graphics.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/neverhood/graphics.cpp b/engines/neverhood/graphics.cpp
index 3d1724ed8a..939428ed19 100644
--- a/engines/neverhood/graphics.cpp
+++ b/engines/neverhood/graphics.cpp
@@ -47,6 +47,7 @@ BaseSurface::BaseSurface(NeverhoodEngine *vm, int priority, int16 width, int16 h
}
BaseSurface::~BaseSurface() {
+ _surface->free();
delete _surface;
}