diff --git a/libcef/browser_impl.cc b/libcef/browser_impl.cc index 41ed6b368..24f225c79 100644 --- a/libcef/browser_impl.cc +++ b/libcef/browser_impl.cc @@ -783,9 +783,11 @@ void CefBrowserImpl::UIT_DestroyBrowser() { main_frame_ = NULL; - // Release the proxy on the IO thread. - CefThread::ReleaseSoon(CefThread::IO, FROM_HERE, - request_context_proxy_.release()); + if (request_context_proxy_) { + // Release the proxy on the IO thread. + CefThread::ReleaseSoon(CefThread::IO, FROM_HERE, + request_context_proxy_.release()); + } // Remove the reference added in UIT_CreateBrowser(). Release();