diff options
author | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 05:24:10 +0000 |
---|---|---|
committer | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 05:24:10 +0000 |
commit | c085acc3a545eccbda1a26b8948c8b768439bb2e (patch) | |
tree | ba6a956046dc477dcef3361002702dd5d63eade8 /net/ocsp | |
parent | 2c62a7ab78c8d39bf9e9d11101ebf085ec854b53 (diff) | |
download | chromium_src-c085acc3a545eccbda1a26b8948c8b768439bb2e.zip chromium_src-c085acc3a545eccbda1a26b8948c8b768439bb2e.tar.gz chromium_src-c085acc3a545eccbda1a26b8948c8b768439bb2e.tar.bz2 |
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
Diffstat (limited to 'net/ocsp')
-rw-r--r-- | net/ocsp/nss_ocsp.cc | 4 |
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; |