summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/mock_render_thread.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-06 19:18:02 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-06 19:18:02 +0000
commit87cfff07b279ac46dfea597e3ce7cfb37ab962b4 (patch)
treef431ca9c6f999ffa83586954b6f9ef3d909450ae /chrome/renderer/mock_render_thread.h
parent48723353147a73896b553a690a486fff779329a8 (diff)
downloadchromium_src-87cfff07b279ac46dfea597e3ce7cfb37ab962b4.zip
chromium_src-87cfff07b279ac46dfea597e3ce7cfb37ab962b4.tar.gz
chromium_src-87cfff07b279ac46dfea597e3ce7cfb37ab962b4.tar.bz2
Fix a leak in the RenderView tests. We were responsible for deleting the reply deserializer for sync messages, which wasn't happening for all cases.
BUG=6037 Review URL: http://codereview.chromium.org/17206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_render_thread.h')
-rw-r--r--chrome/renderer/mock_render_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h
index 950353a..fc28517 100644
--- a/chrome/renderer/mock_render_thread.h
+++ b/chrome/renderer/mock_render_thread.h
@@ -108,7 +108,7 @@ class MockRenderThread : public RenderThreadBase {
IPC::Channel::Listener* widget_;
// The last known good deserializer for sync messages.
- IPC::MessageReplyDeserializer* reply_deserializer_;
+ scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
std::vector<MessagePair> messages_;
};