From 349ebe94f19c5d7d2108a0c97aaeb2f5b5709b6e Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 1 Dec 2010 23:15:28 +0000 Subject: HUGO: Add Missing shutdown() Call - Currently Disabled. The engine shutdown() function is required to be called to clean up a number of allocated memory blocks. Unfortunately, this currently causes double free issues. This call is added, but commented out with a FIXME explaining this. svn-id: r54726 --- engines/hugo/hugo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/hugo') diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index d1911301ec..f1f762db2f 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -86,6 +86,10 @@ HugoEngine::HugoEngine(OSystem *syst, const HugoGameDescription *gd) : Engine(sy } HugoEngine::~HugoEngine() { + // FIXME - Need to call this to remove memory leaks, + // but this currently causes double free issues. + //shutdown(); + freeTexts(_textData); freeTexts(_stringtData); -- cgit v1.2.3