From 3de2ca16872c8436fedf6b9325f1f2c153f05609 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 12 Sep 2006 10:03:57 +0000 Subject: Fix Z_FreeTags in z_native.c (chains were not set to NULL when freed). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 605 --- src/z_native.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/z_native.c b/src/z_native.c index fbef8aa0..a73fd489 100644 --- 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 @@ -205,6 +205,10 @@ void Z_FreeTags(int lowtag, int hightag) block = next; } + + // This chain is empty now + + allocated_blocks[i] = NULL; } } -- cgit v1.2.3