diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-21 23:04:40 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-21 23:04:40 +0000 |
commit | 0abc3c589cfcffd655867ef4ceb9db3c225da064 (patch) | |
tree | 55a5636a96f70908bf8aacb8a8722cdf80106844 /webkit/appcache/appcache_storage_impl.cc | |
parent | cd6325b533d1411156685ec78b9c7eb14aa54003 (diff) | |
download | chromium_src-0abc3c589cfcffd655867ef4ceb9db3c225da064.zip chromium_src-0abc3c589cfcffd655867ef4ceb9db3c225da064.tar.gz chromium_src-0abc3c589cfcffd655867ef4ceb9db3c225da064.tar.bz2 |
Fix a racey refcounting bug.
BUG=44485
TEST=tools/valgrind/chrome_tests.sh --tool=tsan -t test_shell --gtest_filter='AppCacheStorage*'
Review URL: http://codereview.chromium.org/2109012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_storage_impl.cc')
-rw-r--r-- | webkit/appcache/appcache_storage_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_storage_impl.cc b/webkit/appcache/appcache_storage_impl.cc index ee9c30b..051d276 100644 --- a/webkit/appcache/appcache_storage_impl.cc +++ b/webkit/appcache/appcache_storage_impl.cc @@ -118,6 +118,7 @@ void AppCacheStorageImpl::DatabaseTask::CallRunCompleted() { DCHECK(storage_->scheduled_database_tasks_.front() == this); storage_->scheduled_database_tasks_.pop_front(); RunCompleted(); + delegates_.clear(); } } |