summaryrefslogtreecommitdiffstats
path: root/chrome_frame/urlmon_bind_status_callback.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/urlmon_bind_status_callback.cc')
-rw-r--r--chrome_frame/urlmon_bind_status_callback.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome_frame/urlmon_bind_status_callback.cc b/chrome_frame/urlmon_bind_status_callback.cc
index 2b322362..ec51c57 100644
--- a/chrome_frame/urlmon_bind_status_callback.cc
+++ b/chrome_frame/urlmon_bind_status_callback.cc
@@ -46,7 +46,9 @@ HRESULT CFUrlmonBindStatusCallback::Initialize(IBindCtx* bind_ctx,
HRESULT hr = ::RegisterBindStatusCallback(bind_ctx, this,
delegate_.Receive(), 0);
if (!delegate_) {
- NOTREACHED();
+ NOTREACHED() << "Failed to find registered bind status callback";
+ ::RevokeBindStatusCallback(bind_ctx_, this);
+ bind_ctx_.Release();
hr = E_UNEXPECTED;
}