diff --git a/cef1/libcef/browser_impl.cc b/cef1/libcef/browser_impl.cc index 025a4439d..99fa1fd8f 100644 --- a/cef1/libcef/browser_impl.cc +++ b/cef1/libcef/browser_impl.cc @@ -783,9 +783,11 @@ void CefBrowserImpl::UIT_DestroyBrowser() { main_frame_ = NULL; - // Delete the proxy on the IO thread. - CefThread::DeleteSoon(CefThread::IO, FROM_HERE, - request_context_proxy_.release()); + if (request_context_proxy_.get()) { + // Delete the proxy on the IO thread. + CefThread::DeleteSoon(CefThread::IO, FROM_HERE, + request_context_proxy_.release()); + } // Remove the reference added in UIT_CreateBrowser(). Release();