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:
Torbjörn Andersson 2014-05-05 07:20:49 +02:00
parent c6d36044c5
commit b565d0bf24

View File

@ -47,6 +47,7 @@ BaseSurface::BaseSurface(NeverhoodEngine *vm, int priority, int16 width, int16 h
}
BaseSurface::~BaseSurface() {
_surface->free();
delete _surface;
}