From 19d9ebd0635c4ec3d4946833023295fd2c33655e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 17 Apr 2013 18:33:26 +0000 Subject: [PATCH] Fix crash during window close when no CefClient is provided. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1228 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/browser/browser_host_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcef/browser/browser_host_impl.cc b/libcef/browser/browser_host_impl.cc index d02b0b9cc..e61481b31 100644 --- a/libcef/browser/browser_host_impl.cc +++ b/libcef/browser/browser_host_impl.cc @@ -1505,7 +1505,7 @@ void CefBrowserHostImpl::CloseContents(content::WebContents* source) { // If this method is called in response to something other than // WindowDestroyed() ask the user if the browser should close. - if (IsWindowRenderingDisabled() || !window_destroyed_) { + if (client_.get() && (IsWindowRenderingDisabled() || !window_destroyed_)) { CefRefPtr handler = client_->GetLifeSpanHandler(); if (handler.get()) {