Jacek Caban : shdocvw: Release callback and bindctx in
bind_url_to_object.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 9 15:47:41 CST 2007
Module: wine
Branch: master
Commit: 3febaa2d137af41286c49419b216fb84d85231ba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3febaa2d137af41286c49419b216fb84d85231ba
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Mar 9 16:55:07 2007 +0100
shdocvw: Release callback and bindctx in bind_url_to_object.
---
dlls/shdocvw/navigate.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/shdocvw/navigate.c b/dlls/shdocvw/navigate.c
index 3d3ff61..a7b05b5 100644
--- a/dlls/shdocvw/navigate.c
+++ b/dlls/shdocvw/navigate.c
@@ -413,8 +413,7 @@ static BOOL try_application_url(LPCWSTR url)
return ShellExecuteExW(&exec_info);
}
-static HRESULT navigate(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
- IBindStatusCallback *callback)
+static HRESULT navigate(DocHost *This, IMoniker *mon, IBindCtx *bindctx)
{
IOleObject *oleobj;
IPersistMoniker *persist;
@@ -499,9 +498,11 @@ static HRESULT bind_url_to_object(DocHost *This, LPCWSTR url, PBYTE post_data, U
callback = create_callback(This, post_data, post_data_len, (LPWSTR)headers, &cancel);
CreateAsyncBindCtx(0, callback, 0, &bindctx);
+ IBindStatusCallback_Release(callback);
- hres = navigate(This, mon, bindctx, callback);
+ hres = navigate(This, mon, bindctx);
+ IBindCtx_Release(bindctx);
IMoniker_Release(mon);
return hres;
@@ -602,7 +603,7 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
This->url = url;
- return navigate(This, mon, bindctx, callback);
+ return navigate(This, mon, bindctx);
}
#define HLINKFRAME_THIS(iface) DEFINE_THIS(WebBrowser, HlinkFrame, iface)
More information about the wine-cvs
mailing list