From c085acc3a545eccbda1a26b8948c8b768439bb2e Mon Sep 17 00:00:00 2001 From: "ukai@chromium.org" Date: Thu, 14 Jan 2010 05:24:10 +0000 Subject: Remove destruction observer in CancelURLRequest BUG=30410 TEST=none Review URL: http://codereview.chromium.org/541060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36228 0039d316-1c4b-4281-b951-d872f2087c98 --- net/ocsp/nss_ocsp.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/ocsp') 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; -- cgit v1.1