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;