Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: webkit/glue/resource_handle_impl.cc

Issue 15019: Fixes a leak of a ResourceHandle that happens with synchronous XMLHttpRequest... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/resource_handle_impl.cc
===================================================================
--- webkit/glue/resource_handle_impl.cc (revision 7182)
+++ webkit/glue/resource_handle_impl.cc (working copy)
@@ -716,7 +716,7 @@
ResourceResponse& response, Vector<char>& data, Frame*) {
RefPtr<ResourceHandle> handle =
- new ResourceHandle(request, NULL, false, false, false);
+ adoptRef(new ResourceHandle(request, NULL, false, false, false));
ResourceLoaderBridge::SyncLoadResponse sync_load_response;
if (!handle->d->Start(&sync_load_response)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698