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
This commit is contained in:
Gregory John Casamento 2004-05-29 01:40:14 +00:00
parent 402a05ca2e
commit 26162bfb4d
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-05-28 21:48 Gregory John Casamento <greg_casamento@yahoo.com>
* 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 <greg_casamento@yahoo.com>
* Gorm.m: [Gorm testInterface:] added code to save the services

View file

@ -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)
{