Correction for recently discovered segfault.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19614 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-06-25 01:15:37 +00:00
parent b42d75db38
commit b359ed9d5a
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2004-06-24 01:33 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: [Gorm close:] the window is already released when
the document is released and the code had an
"setReleasedWhenClosed" which was call which was causing
an extra release and subsequently a core dump when selecting
the "Close" item from the document menu.
2004-06-24 01:33 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Additions to [GormDocument attachObject:

1
Gorm.m
View file

@ -642,7 +642,6 @@ NSString *GormResizeCellNotification = @"GormResizeCellNotification";
GormDocument *document = (GormDocument *)[self activeDocument];
NSWindow *window = [document window];
[window setReleasedWhenClosed: YES];
[window performClose: self];
}