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
This commit is contained in:
parent
ba1dc0fe45
commit
26a2281486
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue