Module: wine Branch: master Commit: 26e5166c9d764b1b64dec50f05b12ccc698c1095 URL: https://gitlab.winehq.org/wine/wine/-/commit/26e5166c9d764b1b64dec50f05b12cc...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Fri Jul 7 17:25:05 2023 +0300
mshtml/tests: Fix area element leaks in test helpers.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
---
dlls/mshtml/tests/dom.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index a15ae34bc50..c97124b043c 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -1761,6 +1761,7 @@ static void _test_area_href(unsigned line, IUnknown *unk, const WCHAR *exhref) hres = IHTMLAreaElement_get_href(area, &str); ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, exhref), "href = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exhref)); + IHTMLAreaElement_Release(area); SysFreeString(str);
_test_disp_value(line, unk, exhref); @@ -1776,6 +1777,7 @@ static void _test_area_put_href(unsigned line, IUnknown *unk, const WCHAR *exhre str = SysAllocString(exhref); hres = IHTMLAreaElement_put_href(area, str); ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08lx\n", hres); + IHTMLAreaElement_Release(area); SysFreeString(str);
_test_disp_value(line, unk, exhref);