summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-06 21:09:43 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-06 21:09:43 +0000
commitb4f139fcaddca0f19972404df79bfc3b63fa2297 (patch)
tree6286734f1412d119967078baffe70d4a5638fee3 /webkit/glue
parentae7f4f5a5afa9476fadb23e3ac3a77f8fac75209 (diff)
downloadchromium_src-b4f139fcaddca0f19972404df79bfc3b63fa2297.zip
chromium_src-b4f139fcaddca0f19972404df79bfc3b63fa2297.tar.gz
chromium_src-b4f139fcaddca0f19972404df79bfc3b63fa2297.tar.bz2
Fix ResourceHandle leak.
Review URL: http://codereview.chromium.org/6505 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/resource_handle_win.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/glue/resource_handle_win.cc b/webkit/glue/resource_handle_win.cc
index 0107625..c7642e2 100644
--- a/webkit/glue/resource_handle_win.cc
+++ b/webkit/glue/resource_handle_win.cc
@@ -623,9 +623,9 @@ PassRefPtr<ResourceHandle> ResourceHandle::create(const ResourceRequest& request
bool defersLoading,
bool shouldContentSniff,
bool mightDownloadFromHandle) {
- RefPtr<ResourceHandle> newHandle(
- new ResourceHandle(request, client, defersLoading, shouldContentSniff,
- mightDownloadFromHandle));
+ RefPtr<ResourceHandle> newHandle =
+ adoptRef(new ResourceHandle(request, client, defersLoading,
+ shouldContentSniff, mightDownloadFromHandle));
if (newHandle->start(NULL))
return newHandle.release();