summaryrefslogtreecommitdiffstats
path: root/net/ocsp
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-02 20:04:27 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-02 20:04:27 +0000
commit47c196b188bf7b1051468a1de4e26d71cabf132f (patch)
tree527bf9e654b24b0da7ef38636a78fa6b2a97523a /net/ocsp
parent35bdac852d803a462f87d72baa9c6fd56109517e (diff)
downloadchromium_src-47c196b188bf7b1051468a1de4e26d71cabf132f.zip
chromium_src-47c196b188bf7b1051468a1de4e26d71cabf132f.tar.gz
chromium_src-47c196b188bf7b1051468a1de4e26d71cabf132f.tar.bz2
[GTTF] Apply test isolation goodness to net_unittests.
TEST=Covered by net_unittests and test_shell_tests. BUG=12710 Review URL: http://codereview.chromium.org/460014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ocsp')
-rw-r--r--net/ocsp/nss_ocsp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc
index 8ee1e96..a82f141 100644
--- a/net/ocsp/nss_ocsp.cc
+++ b/net/ocsp/nss_ocsp.cc
@@ -57,6 +57,8 @@ class OCSPInitSingleton : public MessageLoop::DestructionObserver {
friend struct DefaultSingletonTraits<OCSPInitSingleton>;
OCSPInitSingleton();
virtual ~OCSPInitSingleton() {
+ if (io_loop_)
+ io_loop_->RemoveDestructionObserver(this);
request_context_ = NULL;
}