From a32b12d4a0cef1f227aa71d8e54ece1d4693c721 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 16 Aug 2000 11:57:04 +0000 Subject: [PATCH] Minor memory leak fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7205 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSDebug.m | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index e97a1e17f..ed9c618d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-08-16 Richard Frith-Macdonald + + * Source/NSDebug.m: Fix memory leak when adding new class to array + of those being recorded - report by Frederic.De.Jaeger + 2000-08-13 Manuel Guesdon * Tools/gsdoc.gsdoc: aded examples on how to use AutoDoc and GSDoc. diff --git a/Source/NSDebug.m b/Source/NSDebug.m index 8523c0489..748ac6e6c 100644 --- a/Source/NSDebug.m +++ b/Source/NSDebug.m @@ -143,6 +143,7 @@ GSDebugAllocationAdd(Class c) NSZoneFree(NSDefaultMallocZone(), the_table); } the_table = tmp; + table_size = more; } the_table[num_classes].class = c; the_table[num_classes].count = 1;