Corrected intermittent segfault when deleting gui elements.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18237 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-11-29 05:25:42 +00:00
parent 06a8edb796
commit 4741ddaac3
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2003-11-29 00:28 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: -detachObject: extra RELEASE was causing
a double release when the editor for an object was deallocating
itself. This was (intermittently) causing a segfault when
deleting an element from the gui.
2003-11-28 18:26 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.[hm]: Slight modification allCustomSubclassesOf:

4
Gorm.m
View file

@ -519,9 +519,9 @@ NSString *GormWillDetachObjectFromDocumentNotification = @"GormWillDetachObjectF
forKey: @"ApplicationName"];
[dict setObject: @"[GNUstep | Graphical] Object Relationship Modeller"
forKey: @"ApplicationDescription"];
[dict setObject: @"Gorm 0.5.0 (Beta)"
[dict setObject: @"Gorm 0.5.1 (Beta)"
forKey: @"ApplicationRelease"];
[dict setObject: @"0.5.0 Nov 23 2003"
[dict setObject: @"0.5.1 Nov 29 2003"
forKey: @"FullVersionID"];
[dict setObject: [NSArray arrayWithObjects: @"Gregory John Casamento <greg_casamento@yahoo.com>",
@"Richard Frith-Macdonald <rfm@gnu.org>",

View file

@ -724,8 +724,6 @@ static NSImage *classesImage = nil;
NSMapRemove(objToName, (void*)anObject);
RELEASE(name);
}
RELEASE(anObject);
}
- (void) detachObjects: (NSArray*)anArray