[Scummvm-devel] Cruise engine memory leaks

Neil Millstone neil at millstone.demon.co.uk
Wed Oct 7 12:43:43 CEST 2009


Hi,

After my success with Return to Zork, I looked at adding the Cruise 
engine to ScummVM DS today.  Unfortunately I found the same issue - tons 
of memory leaks.  Just by watching the intro of Cruise for a Corpse, 
over 1Mb of RAM is leaked according to valgrind under Linux (a very 
useful tool which I discovered while doing this!).

I had a look, and removed a handful of leaks, but it seemed there were 
many more.  It's going to need someone familiar with the code to take a 
look at it.  Also, I'm not sure whether my fixes have broken anything, 
although I did play the game briefly and it seemed ok. 

These leaks will cause problems on ports like GP2X, PS2 etc. as it 
wouldn't take very much playing to leak 16/32Mb with the code as it is now.

Here's my patch on the patch tracker:
https://sourceforge.net/tracker/?func=detail&aid=2874026&group_id=37116&atid=418822

Thanks,

- Neil




More information about the Scummvm-devel mailing list