Commit bf6d0f22 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Release IOleCommandTarget in IPersistMoniker::Load.

parent df3a7a7b
...@@ -217,6 +217,8 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva ...@@ -217,6 +217,8 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
V_VT(&var) = VT_I4; V_VT(&var) = VT_I4;
V_I4(&var) = 0; V_I4(&var) = 0;
IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &var, NULL); IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &var, NULL);
IOleCommandTarget_Release(cmdtrg);
} }
} }
...@@ -532,7 +534,7 @@ static HRESULT WINAPI PersistStreamInit_Save(IPersistStreamInit *iface, LPSTREAM ...@@ -532,7 +534,7 @@ static HRESULT WINAPI PersistStreamInit_Save(IPersistStreamInit *iface, LPSTREAM
nsAString_Finish(&nsstr); nsAString_Finish(&nsstr);
ERR("%s\n", debugstr_a(str)); TRACE("%s\n", debugstr_a(str));
hres = IStream_Write(pStm, str, len, &written); hres = IStream_Write(pStm, str, len, &written);
if(FAILED(hres)) if(FAILED(hres))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment