From ea21006666221f2db958e1470903181574dfebc0 Mon Sep 17 00:00:00 2001 From: "glider@chromium.org" Date: Fri, 30 Jul 2010 10:05:26 +0000 Subject: Fix new[]/delete mismatch caused by using scoped_ptr to handle strings. TBR=mbelshe Review URL: http://codereview.chromium.org/3020046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54299 0039d316-1c4b-4281-b951-d872f2087c98 --- net/spdy/spdy_test_util.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/spdy') diff --git a/net/spdy/spdy_test_util.cc b/net/spdy/spdy_test_util.cc index 97c87c0..4d30d0c 100644 --- a/net/spdy/spdy_test_util.cc +++ b/net/spdy/spdy_test_util.cc @@ -276,9 +276,9 @@ spdy::SpdyFrame* ConstructSpdyGet(const char* const url, std::string str_path = gurl.PathForRequest(); std::string str_scheme = gurl.scheme(); std::string str_host = gurl.host(); // TODO(mbelshe): should have a port. - scoped_ptr req(new char[str_path.size() + 1]); - scoped_ptr scheme(new char[str_scheme.size() + 1]); - scoped_ptr host(new char[str_host.size() + 1]); + scoped_array req(new char[str_path.size() + 1]); + scoped_array scheme(new char[str_scheme.size() + 1]); + scoped_array host(new char[str_host.size() + 1]); memcpy(req.get(), str_path.c_str(), str_path.size()); memcpy(scheme.get(), str_scheme.c_str(), str_scheme.size()); memcpy(host.get(), str_host.c_str(), str_host.size()); -- cgit v1.1