[Scummvm-cvs-logs] scummvm master -> b565d0bf24128f18aac3a5daae48415535f97676

eriktorbjorn eriktorbjorn at telia.com
Mon May 5 07:22:56 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b565d0bf24 NEVERHOOD: Fix memory leak in BaseSurface


Commit: b565d0bf24128f18aac3a5daae48415535f97676
    https://github.com/scummvm/scummvm/commit/b565d0bf24128f18aac3a5daae48415535f97676
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2014-05-05T07:20:49+02:00

Commit Message:
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.

Changed paths:
    engines/neverhood/graphics.cpp



diff --git a/engines/neverhood/graphics.cpp b/engines/neverhood/graphics.cpp
index 3d1724e..939428e 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;
 }
 






More information about the Scummvm-git-logs mailing list