mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
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:
parent
402a05ca2e
commit
26162bfb4d
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue