summaryrefslogtreecommitdiffstats
path: root/net/ocsp/nss_ocsp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/ocsp/nss_ocsp.cc')
-rw-r--r--net/ocsp/nss_ocsp.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc
index 53bdf43..c135dfd 100644
--- a/net/ocsp/nss_ocsp.cc
+++ b/net/ocsp/nss_ocsp.cc
@@ -369,6 +369,10 @@ class OCSPRequestSession
request_->Cancel();
delete request_;
request_ = NULL;
+ // |io_loop_| may be NULL here if it called from
+ // WillDestroyCurrentMessageLoop().
+ if (io_loop_)
+ io_loop_->RemoveDestructionObserver(this);
{
AutoLock autolock(lock_);
finished_ = true;