Merge revision 734 changes:

- Only release the request context proxy if it exists (issue #677).

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1025@735 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-08-07 17:19:31 +00:00
parent 2bb74087b6
commit be1fd6d3c3

View File

@ -783,9 +783,11 @@ void CefBrowserImpl::UIT_DestroyBrowser() {
main_frame_ = NULL; main_frame_ = NULL;
// Release the proxy on the IO thread. if (request_context_proxy_) {
CefThread::ReleaseSoon(CefThread::IO, FROM_HERE, // Release the proxy on the IO thread.
request_context_proxy_.release()); CefThread::ReleaseSoon(CefThread::IO, FROM_HERE,
request_context_proxy_.release());
}
// Remove the reference added in UIT_CreateBrowser(). // Remove the reference added in UIT_CreateBrowser().
Release(); Release();