diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-21 23:34:28 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-21 23:34:28 +0000 |
commit | 212096fadfdddc785070c66575b6e18f9ce855ed (patch) | |
tree | f6df5b1b06bce0f98b15183e57974a6387f9656b /net/base/network_change_notifier_mac.cc | |
parent | fbcb94913ce9ad658d542ee1718b406746e50abf (diff) | |
download | chromium_src-212096fadfdddc785070c66575b6e18f9ce855ed.zip chromium_src-212096fadfdddc785070c66575b6e18f9ce855ed.tar.gz chromium_src-212096fadfdddc785070c66575b6e18f9ce855ed.tar.bz2 |
Fix benign race on NetworkChangeNotifierThread's vtable pointer.
See bug 25385 and http://code.google.com/p/data-race-test/wiki/PopularDataRaces for details.
Review URL: http://codereview.chromium.org/509017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/network_change_notifier_mac.cc')
-rw-r--r-- | net/base/network_change_notifier_mac.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/base/network_change_notifier_mac.cc b/net/base/network_change_notifier_mac.cc index 81fe02d..5606210 100644 --- a/net/base/network_change_notifier_mac.cc +++ b/net/base/network_change_notifier_mac.cc @@ -203,6 +203,7 @@ NetworkChangeNotifierThread::NetworkChangeNotifierThread( NetworkChangeNotifierThread::~NetworkChangeNotifierThread() { notifier_impl_->Shutdown(); + Stop(); } // Note that |notifier_impl_| is initialized on the network change |