Fix a crash when destroying window.
This commit is contained in:
parent
84d458687a
commit
5c5cf3c66e
3 changed files with 16 additions and 6 deletions
|
@ -201,7 +201,7 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
|
|||
NativeWindowMac::~NativeWindowMac() {
|
||||
// Force InspectableWebContents to be destroyed before we destroy window,
|
||||
// because it may still be observing the window at this time.
|
||||
inspectable_web_contents_.reset();
|
||||
DestroyWebContents();
|
||||
}
|
||||
|
||||
void NativeWindowMac::Close() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue