[Scummvm-cvs-logs] SF.net SVN: scummvm: [23784] scummvm/trunk/engines/lure

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Aug 27 13:45:06 CEST 2006


Revision: 23784
Author:   dreammaster
Date:     2006-08-27 04:44:39 -0700 (Sun, 27 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23784&view=rev

Log Message:
-----------
Made the Memory::dealloc take a void * to make it easier to free any memory block type

Modified Paths:
--------------
    scummvm/trunk/engines/lure/memory.cpp
    scummvm/trunk/engines/lure/memory.h
Modified: scummvm/trunk/engines/lure/memory.cpp
===================================================================
--- scummvm/trunk/engines/lure/memory.cpp	2006-08-27 11:43:09 UTC (rev 23783)
+++ scummvm/trunk/engines/lure/memory.cpp	2006-08-27 11:44:39 UTC (rev 23784)
@@ -39,7 +39,7 @@
 	return (uint8 *) malloc(size);
 }
 
-void Memory::dealloc(uint8 *block) {
+void Memory::dealloc(void *block) {
 	free(block);
 }
 

Modified: scummvm/trunk/engines/lure/memory.h
===================================================================
--- scummvm/trunk/engines/lure/memory.h	2006-08-27 11:43:09 UTC (rev 23783)
+++ scummvm/trunk/engines/lure/memory.h	2006-08-27 11:44:39 UTC (rev 23784)
@@ -55,7 +55,7 @@
 	static MemoryBlock *allocate(uint32 size);
 	static MemoryBlock *duplicate(MemoryBlock *src);
 	static uint8 *alloc(uint32 size);
-	static void dealloc(uint8 *block);
+	static void dealloc(void *block);
 };
 
 } // end of namspace Lure


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