shithub: choc

Download patch

ref: 3de2ca16872c8436fedf6b9325f1f2c153f05609
parent: fc3cf15fd5a01c93c70ac2441a2ff6f95c327f3a
author: Simon Howard <[email protected]>
date: Tue Sep 12 06:03:57 EDT 2006

Fix Z_FreeTags in z_native.c (chains were not set to NULL when freed).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 605

--- a/src/z_native.c
+++ b/src/z_native.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: z_native.c 443 2006-03-25 21:47:13Z fraggle $
+// $Id: z_native.c 605 2006-09-12 10:03:57Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2006 Simon Howard
@@ -30,7 +30,7 @@
 //-----------------------------------------------------------------------------
 
 static const char
-rcsid[] = "$Id: z_native.c 443 2006-03-25 21:47:13Z fraggle $";
+rcsid[] = "$Id: z_native.c 605 2006-09-12 10:03:57Z fraggle $";
 
 #include <stdlib.h>
 
@@ -205,6 +205,10 @@
 
             block = next;
         }
+
+	// This chain is empty now
+
+	allocated_blocks[i] = NULL;
     }
 }