summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/util/corealloc.c15
-rw-r--r--src/lib/util/corealloc.h12
2 files changed, 11 insertions, 16 deletions
diff --git a/src/lib/util/corealloc.c b/src/lib/util/corealloc.c
index c1bc9185def..f937c5b17fc 100644
--- a/src/lib/util/corealloc.c
+++ b/src/lib/util/corealloc.c
@@ -16,7 +16,15 @@
// DEBUGGING
//**************************************************************************
-#define LOG_ALLOCS (0)
+#define LOG_ALLOCS (1)
+
+// define this to initialize allocated memory to a fixed non-0 value
+#ifdef MAME_DEBUG
+#define INITIALIZE_ALLOCATED_MEMORY
+#endif
+
+// define this to zap memory to a fixed non-0 value before freeing
+//#define OVERWRITE_FREED_MEMORY
@@ -172,9 +180,8 @@ void free_file_line(void *memory, const char *file, int line, bool array)
//-------------------------------------------------
-// dump_unfreed_mem - called from the exit path
-// of any code that wants to check for unfreed
-// memory
+// track_memory - enables or disables the memory
+// tracking
//-------------------------------------------------
void track_memory(bool track)
diff --git a/src/lib/util/corealloc.h b/src/lib/util/corealloc.h
index d3982ea3d86..5b002557769 100644
--- a/src/lib/util/corealloc.h
+++ b/src/lib/util/corealloc.h
@@ -19,18 +19,6 @@
//**************************************************************************
-// DEBUGGING
-//**************************************************************************
-
-// define this to initialize allocated memory to a fixed non-0 value
-//#define INITIALIZE_ALLOCATED_MEMORY
-
-// define this to zap memory to a fixed non-0 value before freeing
-//#define OVERWRITE_FREED_MEMORY
-
-
-
-//**************************************************************************
// MACROS
//**************************************************************************