diff options
author | 2012-02-19 02:01:54 +0000 | |
---|---|---|
committer | 2012-02-19 02:01:54 +0000 | |
commit | a33c799e2297e0ada2371885412bad766cb6221a (patch) | |
tree | b85be3d6a9bf432678b1185ce1fe1b8aa72a413e /src/emu/emualloc.c | |
parent | 1db230096b54f092e1234a583fce3a2ffbfecd16 (diff) |
free_file_line no longer complains about NULL free's not existing.
Removed unnecessary checks for NULL that were added due to the
previous problem.
Diffstat (limited to 'src/emu/emualloc.c')
-rw-r--r-- | src/emu/emualloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/emualloc.c b/src/emu/emualloc.c index c46b64e89e6..105e4f14eda 100644 --- a/src/emu/emualloc.c +++ b/src/emu/emualloc.c @@ -191,6 +191,10 @@ void *malloc_array_file_line(size_t size, const char *file, int line) void free_file_line(void *memory, const char *file, int line) { + // ignore NULL frees/deletes + if (memory == NULL) + return; + // find the memory entry memory_entry *entry = memory_entry::find(memory); |