Merge revision 1487 changes:

- Fix memory corruption in browser-initiated CefURLRequests (issue #1118).

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1547@1489 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-10-24 21:45:19 +00:00
parent d96249903f
commit 1beb2975bf

View File

@@ -371,7 +371,10 @@ CefURLFetcherDelegate::~CefURLFetcherDelegate() {
void CefURLFetcherDelegate::OnURLFetchComplete( void CefURLFetcherDelegate::OnURLFetchComplete(
const net::URLFetcher* source) { const net::URLFetcher* source) {
context_->OnComplete(); // Complete asynchronously so as not to delete the URLFetcher while it's still
// in the call stack.
base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&CefBrowserURLRequest::Context::OnComplete, context_));
} }
void CefURLFetcherDelegate::OnURLFetchDownloadProgress( void CefURLFetcherDelegate::OnURLFetchDownloadProgress(