[Scummvm-cvs-logs] SF.net SVN: scummvm: [32679] scummvm/branches/gsoc2008-rtl/engines/agos/ agos.cpp

cpage88 at users.sourceforge.net cpage88 at users.sourceforge.net
Thu Jun 12 21:34:33 CEST 2008


Revision: 32679
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32679&view=rev
Author:   cpage88
Date:     2008-06-12 12:34:32 -0700 (Thu, 12 Jun 2008)

Log Message:
-----------
AGOS: Fixed a memory leak in the AGOS engine

Modified Paths:
--------------
    scummvm/branches/gsoc2008-rtl/engines/agos/agos.cpp

Modified: scummvm/branches/gsoc2008-rtl/engines/agos/agos.cpp
===================================================================
--- scummvm/branches/gsoc2008-rtl/engines/agos/agos.cpp	2008-06-12 19:06:37 UTC (rev 32678)
+++ scummvm/branches/gsoc2008-rtl/engines/agos/agos.cpp	2008-06-12 19:34:32 UTC (rev 32679)
@@ -37,6 +37,7 @@
 
 #include "sound/mididrv.h"
 #include "sound/mods/protracker.h"
+#include "sound/audiocd.h"
 
 using Common::File;
 
@@ -882,6 +883,8 @@
 	_midi.close();
 	delete _driver;
 
+	AudioCD.destroy();
+
 	for (uint i = 0; i < _itemHeap.size(); i++) {
 		delete[] _itemHeap[i];
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list