summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 19:24:42 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 19:24:42 +0000
commitd22d873921f2f657b483a01a398ddce3001747a1 (patch)
tree4190718501c4cae47302ea1a8be8ee7b6f4c41cd /chrome/renderer
parent30cf2bf9a44e5f97ddd497113bce74feb6b4b517 (diff)
downloadchromium_src-d22d873921f2f657b483a01a398ddce3001747a1.zip
chromium_src-d22d873921f2f657b483a01a398ddce3001747a1.tar.gz
chromium_src-d22d873921f2f657b483a01a398ddce3001747a1.tar.bz2
Fix various uses of release() that did not check its value
BUG=42904 TEST=compile, unit tests Review URL: http://codereview.chromium.org/1730024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc3
-rw-r--r--chrome/renderer/render_widget.cc6
2 files changed, 3 insertions, 6 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 655dada..4ef4983 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -3479,8 +3479,7 @@ void RenderView::OnFindReplyAck() {
// Check if there is any queued up request waiting to be sent.
if (queued_find_reply_message_.get()) {
// Send the search result over to the browser process.
- Send(queued_find_reply_message_.get());
- queued_find_reply_message_.release();
+ Send(queued_find_reply_message_.release());
}
}
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 243665a..7952982 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -424,10 +424,8 @@ void RenderWidget::PaintDebugBorder(const gfx::Rect& rect,
void RenderWidget::CallDoDeferredUpdate() {
DoDeferredUpdate();
- if (pending_input_event_ack_.get()) {
- Send(pending_input_event_ack_.get());
- pending_input_event_ack_.release();
- }
+ if (pending_input_event_ack_.get())
+ Send(pending_input_event_ack_.release());
}
void RenderWidget::DoDeferredUpdate() {