From 299fce6305d70054f684184cf3a3f3659a22da47 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 17 Apr 2013 18:33:45 +0000 Subject: [PATCH] Merge revision 1228 changes: - Fix crash during window close when no CefClient is provided. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1453@1229 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- cef3/libcef/browser/browser_host_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cef3/libcef/browser/browser_host_impl.cc b/cef3/libcef/browser/browser_host_impl.cc index d02b0b9cc..e61481b31 100644 --- a/cef3/libcef/browser/browser_host_impl.cc +++ b/cef3/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()) {