Fix chimera's crash on shutdown problem. This is caused by popups being over-released because of a close message. NPOB

This commit is contained in:
hyatt%netscape.com 2002-03-11 02:56:59 +00:00
parent 5494a6f2c1
commit ff30b1df16

View File

@ -396,6 +396,12 @@ nsresult nsCocoaWindow::StandardCreate(nsIWidget *aParent,
mWindow = [[NSWindow alloc] initWithContentRect:rect styleMask:features
backing:NSBackingStoreBuffered defer:NO];
// Popups will receive a "close" message when an app terminates
// that causes an extra release to occur. Make sure popups
// are set not to release when closed.
if (features == 0)
[mWindow setReleasedWhenClosed: NO];
// create a quickdraw view as the toplevel content view of the window
NSQuickDrawView* content = [[[NSQuickDrawView alloc] init] autorelease];
[content setFrame:[[mWindow contentView] frame]];
@ -1717,7 +1723,6 @@ void StopResizing ( )
return self;
}
- (void)windowDidResize:(NSNotification *)aNotification
{
if ( !mGeckoWindow->IsResizing() ) {