diff options
author | Simon Howard | 2006-09-12 10:03:57 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-12 10:03:57 +0000 |
commit | 3de2ca16872c8436fedf6b9325f1f2c153f05609 (patch) | |
tree | 0f047dc19828d912ff76e8b7d7ef7d65fac32264 | |
parent | fc3cf15fd5a01c93c70ac2441a2ff6f95c327f3a (diff) | |
download | chocolate-doom-3de2ca16872c8436fedf6b9325f1f2c153f05609.tar.gz chocolate-doom-3de2ca16872c8436fedf6b9325f1f2c153f05609.tar.bz2 chocolate-doom-3de2ca16872c8436fedf6b9325f1f2c153f05609.zip |
Fix Z_FreeTags in z_native.c (chains were not set to NULL when freed).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 605
-rw-r--r-- | src/z_native.c | 8 |
1 files 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 <stdlib.h> @@ -205,6 +205,10 @@ void Z_FreeTags(int lowtag, int hightag) block = next; } + + // This chain is empty now + + allocated_blocks[i] = NULL; } } |