From 26162bfb4d115688bd32f8be64f9caad6773ee6a Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sat, 29 May 2004 01:40:14 +0000 Subject: [PATCH] Corrected a crash in the class manager. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19412 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ GormClassManager.m | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 306b93cf..054973bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-28 21:48 Gregory John Casamento + + * GormClassManager.m: Corrected a problem the the renameClassNamed: + newName: method. It was releasing the classInformation and causing + a crash. + 2004-05-25 07:01 Gregory John Casamento * Gorm.m: [Gorm testInterface:] added code to save the services diff --git a/GormClassManager.m b/GormClassManager.m index 0d3e77e5..3e9cc497 100644 --- a/GormClassManager.m +++ b/GormClassManager.m @@ -965,9 +965,10 @@ int index = 0; NSArray *subclasses = [self subClassesOf: oldName]; - + RETAIN(classInfo); // prevent loss of the information... [classInformation removeObjectForKey: oldName]; [classInformation setObject: classInfo forKey: name]; + RELEASE(classInfo); // release our hold on it. if ((index = [customClasses indexOfObject: oldName]) != NSNotFound) {