mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Fix window destruction crash.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@449 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -786,8 +786,11 @@ void CefBrowserImpl::UIT_DestroyBrowser()
|
||||
}
|
||||
|
||||
// Clean up anything associated with the WebViewHost widget.
|
||||
UIT_GetWebViewHost()->webwidget()->close();
|
||||
webviewhost_.reset();
|
||||
if (webviewhost_.get()) {
|
||||
if (webviewhost_->webwidget())
|
||||
webviewhost_->webwidget()->close();
|
||||
webviewhost_.reset();
|
||||
}
|
||||
|
||||
// Remove the reference to the window handle.
|
||||
UIT_ClearMainWndHandle();
|
||||
|
Reference in New Issue
Block a user