aboutsummaryrefslogtreecommitdiff
path: root/common/scummsys.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/scummsys.h')
-rw-r--r--common/scummsys.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/common/scummsys.h b/common/scummsys.h
index 224df158ff..95cdd0d57b 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -437,14 +437,8 @@ void operator delete(void *ptr);
// Since 'new' now returns a memory block inited to 0xE7E7E7E7 we might
// get some invocations of free() with that param. We check for those here.
// That allows us to set a debugger breakpoint to catch it.
-inline void free_check(void *ptr) {
- if ((uint)ptr == 0xE7E7E7E7UL) {
- printf("ERROR: freeing 0xE7E7E7E7\n");
- exit(1);
- }
- free(ptr);
-}
#define free(x) free_check(x)
+void free_check(void *ptr);
#endif
#endif