mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
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.
This commit is contained in:
parent
c6d36044c5
commit
b565d0bf24
@ -47,6 +47,7 @@ BaseSurface::BaseSurface(NeverhoodEngine *vm, int priority, int16 width, int16 h
|
||||
}
|
||||
|
||||
BaseSurface::~BaseSurface() {
|
||||
_surface->free();
|
||||
delete _surface;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user