summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DebugMemory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/DebugMemory.c b/DebugMemory.c
index 8f28af61..6e5156db 100644
--- a/DebugMemory.c
+++ b/DebugMemory.c
@@ -141,6 +141,8 @@ void DebugMemory_registerAllocation(void* data, char* file, int line) {
}
void DebugMemory_registerDeallocation(void* data, char* file, int line) {
+ if (!data)
+ return;
assert(singleton);
assert(singleton->first);
DebugMemoryItem* walk = singleton->first;