From 73b46369c14b7cb4000dbb48591ec3938a680a7d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 27 Aug 2006 11:44:39 +0000 Subject: Made the Memory::dealloc take a void * to make it easier to free any memory block type svn-id: r23784 --- engines/lure/memory.cpp | 2 +- engines/lure/memory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/lure/memory.cpp b/engines/lure/memory.cpp index ab540f7bad..8580aaed9e 100644 --- a/engines/lure/memory.cpp +++ b/engines/lure/memory.cpp @@ -39,7 +39,7 @@ uint8 *Memory::alloc(uint32 size) { return (uint8 *) malloc(size); } -void Memory::dealloc(uint8 *block) { +void Memory::dealloc(void *block) { free(block); } diff --git a/engines/lure/memory.h b/engines/lure/memory.h index d7b56b2e79..7a7bb5e120 100644 --- a/engines/lure/memory.h +++ b/engines/lure/memory.h @@ -55,7 +55,7 @@ public: 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 -- cgit v1.2.3