summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 20:29:41 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 20:29:41 +0000
commit99dea564092d3677e36a5553ef3ef3d42abdc0a6 (patch)
tree0e69b190627779399762f41d812ee8a7e0efda92 /chrome/renderer
parent652d16e3d173b8a8f1d6e621ca74b6f769feceee (diff)
downloadchromium_src-99dea564092d3677e36a5553ef3ef3d42abdc0a6.zip
chromium_src-99dea564092d3677e36a5553ef3ef3d42abdc0a6.tar.gz
chromium_src-99dea564092d3677e36a5553ef3ef3d42abdc0a6.tar.bz2
Fix memory leak in ExtensionAPIClientTest.
TBR=aa git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/extensions/extension_api_client_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/extensions/extension_api_client_unittest.cc b/chrome/renderer/extensions/extension_api_client_unittest.cc
index 64002282..0900803 100644
--- a/chrome/renderer/extensions/extension_api_client_unittest.cc
+++ b/chrome/renderer/extensions/extension_api_client_unittest.cc
@@ -60,8 +60,8 @@ class ExtensionAPIClientTest : public RenderViewTest {
ASSERT_TRUE(static_cast<const ListValue*>(&params.b)->Get(0, &args));
JSONReader reader;
- Value* arg1_value = reader.JsonToValue(arg1, false, false);
- ASSERT_TRUE(args->Equals(arg1_value)) << js;
+ scoped_ptr<Value> arg1_value(reader.JsonToValue(arg1, false, false));
+ ASSERT_TRUE(args->Equals(arg1_value.get())) << js;
render_thread_.sink().ClearMessages();
}
};