summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 19:15:37 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 19:15:37 +0000
commit5aab6b6528025778fa2466ff3406559bfd1dccb9 (patch)
tree80bbfbb005eab999d974be957b4fe885320a66c5 /chrome/renderer
parent132c7cd55de280fd77e635e52d6e83c56551b386 (diff)
downloadchromium_src-5aab6b6528025778fa2466ff3406559bfd1dccb9.zip
chromium_src-5aab6b6528025778fa2466ff3406559bfd1dccb9.tar.gz
chromium_src-5aab6b6528025778fa2466ff3406559bfd1dccb9.tar.bz2
Fixed null dereference in RenderWidget::UpdateAnimationsIfNeeded.
TEST=try, doesn't crash after exiting chrome while viewing WebGL. BUG=none Review URL: http://codereview.chromium.org/6287036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_widget.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 5f66e49..d96ef05 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -488,7 +488,7 @@ void RenderWidget::CallDoDeferredUpdate() {
}
void RenderWidget::UpdateAnimationsIfNeeded() {
- if (!is_hidden() && animation_update_pending_) {
+ if (webwidget_ && !is_hidden() && animation_update_pending_) {
base::Time now = base::Time::Now();
if (now >= animation_floor_time_) {
animation_update_pending_ = false;