mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 20:40:30 +00:00
ieframe: Fix memory leak in open_dde_url.
Signed-off-by: David Kahurani <k.kahurani@gmail.com>
This commit is contained in:
parent
b8ec1068ba
commit
6e32c011a2
|
@ -1027,10 +1027,12 @@ static HDDEDATA open_dde_url(WCHAR *dde_url)
|
||||||
}
|
}
|
||||||
|
|
||||||
hres = IWebBrowser2_Navigate2(&ie->IWebBrowser2_iface, &urlv, NULL, NULL, NULL, NULL);
|
hres = IWebBrowser2_Navigate2(&ie->IWebBrowser2_iface, &urlv, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
SysFreeString(V_BSTR(&urlv));
|
||||||
|
IWebBrowser2_Release(&ie->IWebBrowser2_iface);
|
||||||
|
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
IWebBrowser2_Release(&ie->IWebBrowser2_iface);
|
|
||||||
return ULongToHandle(DDE_FACK);
|
return ULongToHandle(DDE_FACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue