From 26a22814862c8a3f40fe44c38e81528db8b463b0 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 7 Aug 2012 17:18:08 +0000 Subject: [PATCH] Only release the request context proxy if it exists (issue #677). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@734 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- cef1/libcef/browser_impl.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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();