diff options
author | nasko@chromium.org <nasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 14:58:43 +0000 |
---|---|---|
committer | nasko@chromium.org <nasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 14:58:43 +0000 |
commit | 4af6245177ca3ee0792ed32f3a572efa7fb246f3 (patch) | |
tree | 6cdcde19edbdd6c1b04d75a6e9d521afb1441d09 /content/browser/security_exploit_browsertest.cc | |
parent | 5926fe5ae2855444dbcc488adfc6337791076dec (diff) | |
download | chromium_src-4af6245177ca3ee0792ed32f3a572efa7fb246f3.zip chromium_src-4af6245177ca3ee0792ed32f3a572efa7fb246f3.tar.gz chromium_src-4af6245177ca3ee0792ed32f3a572efa7fb246f3.tar.bz2 |
Fix memory leak in SecurityExploitBrowserTest.AttemptDuplicateRenderViewHost.
BUG=328084
Review URL: https://codereview.chromium.org/114403002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/security_exploit_browsertest.cc')
-rw-r--r-- | content/browser/security_exploit_browsertest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc index dacc1e6..fc648f0 100644 --- a/content/browser/security_exploit_browsertest.cc +++ b/content/browser/security_exploit_browsertest.cc @@ -136,8 +136,8 @@ IN_PROC_BROWSER_TEST_F(SecurityExploitBrowserTest, BrowserContext::GetStoragePartition( shell()->web_contents()->GetBrowserContext(), pending_rvh->GetSiteInstance())->GetDOMStorageContext()); - SessionStorageNamespaceImpl* session_storage = - new SessionStorageNamespaceImpl(dom_storage_context); + scoped_refptr<SessionStorageNamespaceImpl> session_storage( + new SessionStorageNamespaceImpl(dom_storage_context)); // Cause a deliberate collision in routing ids. int main_frame_routing_id = duplicate_routing_id + 1; pending_rvh->CreateNewWindow( |