diff options
author | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-24 22:01:21 +0000 |
---|---|---|
committer | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-24 22:01:21 +0000 |
commit | 8023e5689d4f46ed7bc0bea13c8c8904f698c6cf (patch) | |
tree | d5906b67925343b3870c28d2c3f2eb1119d005c9 /chrome/browser/browser_accessibility_manager.cc | |
parent | 0036f08f0473a219cd9cace78901b6de9006f0b2 (diff) | |
download | chromium_src-8023e5689d4f46ed7bc0bea13c8c8904f698c6cf.zip chromium_src-8023e5689d4f46ed7bc0bea13c8c8904f698c6cf.tar.gz chromium_src-8023e5689d4f46ed7bc0bea13c8c8904f698c6cf.tar.bz2 |
Fixes a potential memory leak with a message creation.
Review URL: http://codereview.chromium.org/11579
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_accessibility_manager.cc')
-rw-r--r-- | chrome/browser/browser_accessibility_manager.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/browser_accessibility_manager.cc b/chrome/browser/browser_accessibility_manager.cc index a825995..9d8c15d 100644 --- a/chrome/browser/browser_accessibility_manager.cc +++ b/chrome/browser/browser_accessibility_manager.cc @@ -99,13 +99,12 @@ bool BrowserAccessibilityManager::RequestAccessibilityInfo( if (!members || !members->render_widget_host_) return false; - IPC::SyncMessage* msg = - new ViewMsg_GetAccessibilityInfo( - members->render_widget_host_->routing_id(), in_params, &out_params_); - bool success = false; if (members->render_widget_host_->process() && members->render_widget_host_->process()->channel()) { + IPC::SyncMessage* msg = + new ViewMsg_GetAccessibilityInfo(members->render_widget_host_-> + routing_id(), in_params, &out_params_); // Necessary for the send to keep the UI responsive. msg->EnableMessagePumping(); // By default sync calls are unblocking, i.e if the receiver is an outgoing |