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

cpage88 at users.sourceforge.net cpage88 at users.sourceforge.net
Wed May 14 00:59:19 CEST 2008


Revision: 32094
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32094&view=rev
Author:   cpage88
Date:     2008-05-13 15:59:19 -0700 (Tue, 13 May 2008)

Log Message:
-----------
Fixed memory leak by deallocating memory used by window->iconPtr

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

Modified: scummvm/branches/gsoc2008-rtl/engines/agos/icons.cpp
===================================================================
--- scummvm/branches/gsoc2008-rtl/engines/agos/icons.cpp	2008-05-13 21:39:18 UTC (rev 32093)
+++ scummvm/branches/gsoc2008-rtl/engines/agos/icons.cpp	2008-05-13 22:59:19 UTC (rev 32094)
@@ -534,6 +534,8 @@
 		window->iconPtr->upArrow = _scrollUpHitArea;
 		window->iconPtr->downArrow = _scrollDownHitArea;
 	}
+
+	free (window->iconPtr);
 }
 
 uint AGOSEngine_Feeble::setupIconHitArea(WindowBlock *window, uint num, uint x, uint y, Item *item_ptr) {


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