msscript.ocx: Release the host ref in put_Language.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2020-06-24 17:16:48 +03:00 committed by Alexandre Julliard
parent b34cd24f7d
commit 71d34fc43c
1 changed files with 1 additions and 0 deletions

View File

@ -1182,6 +1182,7 @@ static HRESULT WINAPI ScriptControl_put_Language(IScriptControl *iface, BSTR lan
if (This->host) { if (This->host) {
release_modules(This); release_modules(This);
IActiveScriptSite_Release(&This->host->IActiveScriptSite_iface);
This->host = NULL; This->host = NULL;
} }