]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Mem_Free being passed NULL should be a warning, not a hard error
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Apr 2009 12:50:30 +0000 (12:50 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Apr 2009 12:50:30 +0000 (12:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8875 d7cf8633-e32d-0410-b094-e92efae38249

zone.c

diff --git a/zone.c b/zone.c
index 417a290a6fd1a7b6cf97e087092a77a818f9504b..0274e0665573ac6a65f378932db59f69c83a5cc7 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -204,7 +204,10 @@ static void _Mem_FreeBlock(memheader_t *mem, const char *filename, int fileline)
 void _Mem_Free(void *data, const char *filename, int fileline)
 {
        if (data == NULL)
-               Sys_Error("Mem_Free: data == NULL (called at %s:%i)", filename, fileline);
+       {
+               Con_DPrintf("Mem_Free: data == NULL (called at %s:%i)", filename, fileline);
+               return;
+       }
 
        if (developer.integer && developer_memorydebug.integer)
        {