Corrected crash.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19899 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-08-22 02:01:37 +00:00
parent b4c616e860
commit fc97b591db
3 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-08-21 00:20 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/1Windows/GormNSPanel.m:
* Palettes/1Windows/GormNSWindow.m: Added code to prevent
redundant release and subsequent crash.
2004-08-18 00:20 Gregory John Casamento <greg_casamento@yahoo.com> 2004-08-18 00:20 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassEditor.m: Cleaned up some code. * GormClassEditor.m: Cleaned up some code.

View file

@ -50,6 +50,7 @@
screen: (NSScreen*)aScreen screen: (NSScreen*)aScreen
{ {
_gormStyleMask = aStyle; _gormStyleMask = aStyle;
[self setReleasedWhenClosed: NO];
return [super initWithContentRect: contentRect return [super initWithContentRect: contentRect
styleMask: NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask styleMask: NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask
backing: bufferingType backing: bufferingType

View file

@ -47,6 +47,7 @@
screen: (NSScreen*)aScreen screen: (NSScreen*)aScreen
{ {
_gormStyleMask = aStyle; _gormStyleMask = aStyle;
[self setReleasedWhenClosed: NO];
return [super initWithContentRect: contentRect return [super initWithContentRect: contentRect
styleMask: NSTitledWindowMask | NSClosableWindowMask styleMask: NSTitledWindowMask | NSClosableWindowMask
| NSResizableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask | NSMiniaturizableWindowMask