diff options
Diffstat (limited to 'chrome_frame/chrome_frame_activex_base.h')
-rw-r--r-- | chrome_frame/chrome_frame_activex_base.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame_activex_base.h b/chrome_frame/chrome_frame_activex_base.h index 2b74293..f6e3a90 100644 --- a/chrome_frame/chrome_frame_activex_base.h +++ b/chrome_frame/chrome_frame_activex_base.h @@ -176,9 +176,11 @@ class ATL_NO_VTABLE ChromeFrameActivexBase : // NOLINT ChromeFrameActivexBase() : ready_state_(READYSTATE_UNINITIALIZED) { m_bWindowOnly = TRUE; + url_fetcher_.set_container(static_cast<IDispatch*>(this)); } ~ChromeFrameActivexBase() { + url_fetcher_.set_container(NULL); } DECLARE_OLEMISC_STATUS(OLEMISC_RECOMPOSEONRESIZE | OLEMISC_CANTLINKINSIDE | @@ -260,7 +262,6 @@ END_MSG_MAP() IE_8, IE_8 + 1); } - url_fetcher_.set_container(static_cast<IDispatch*>(this)); return S_OK; } |