mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
WindowDataMap doesn't remove data objects for closed windows. b=495710 r=smichaud r=josh
This commit is contained in:
parent
630bda72e2
commit
a6294b0904
@ -172,7 +172,7 @@ nsCocoaWindow::~nsCocoaWindow()
|
||||
// we want to unhook the delegate here because we don't want events
|
||||
// sent to it after this object has been destroyed
|
||||
[mWindow setDelegate:nil];
|
||||
[mWindow autorelease];
|
||||
[mWindow close];
|
||||
[mDelegate autorelease];
|
||||
}
|
||||
}
|
||||
@ -420,7 +420,6 @@ nsresult nsCocoaWindow::StandardCreate(nsIWidget *aParent,
|
||||
|
||||
[mWindow setBackgroundColor:[NSColor whiteColor]];
|
||||
[mWindow setContentMinSize:NSMakeSize(60, 60)];
|
||||
[mWindow setReleasedWhenClosed:NO];
|
||||
|
||||
// setup our notification delegate. Note that setDelegate: does NOT retain.
|
||||
mDelegate = [[WindowDelegate alloc] initWithGeckoWindow:this];
|
||||
|
Loading…
Reference in New Issue
Block a user