aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2006-08-27 11:44:39 +0000
committerPaul Gilbert2006-08-27 11:44:39 +0000
commit73b46369c14b7cb4000dbb48591ec3938a680a7d (patch)
tree7fb93b95a593dd0a61dd98cb823fb28bd14f5417
parentaf297a17a30cf396580988aed53a87cc84df0e4c (diff)
downloadscummvm-rg350-73b46369c14b7cb4000dbb48591ec3938a680a7d.tar.gz
scummvm-rg350-73b46369c14b7cb4000dbb48591ec3938a680a7d.tar.bz2
scummvm-rg350-73b46369c14b7cb4000dbb48591ec3938a680a7d.zip
Made the Memory::dealloc take a void * to make it easier to free any memory block type
svn-id: r23784
-rw-r--r--engines/lure/memory.cpp2
-rw-r--r--engines/lure/memory.h2
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