From 2e4b264242306bbfd5edd48eaa0b2d42893f2d05 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 18 Apr 2019 15:36:01 +0200 Subject: [PATCH] mshtml/tests: Properly release elem2 in test_elem_bounding_client_rect. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/tests/dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 19d7b111796..c3d11bee460 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -5171,7 +5171,6 @@ static void test_elem_bounding_client_rect(IUnknown *unk) hres = IHTMLElement2_getBoundingClientRect(elem2, &rect); ok(hres == S_OK, "getBoundingClientRect failed: %08x\n", hres); hres = IHTMLElement2_getBoundingClientRect(elem2, &rect2); - IHTMLElement2_Release(elem2); ok(hres == S_OK, "getBoundingClientRect failed: %08x\n", hres); ok(rect != NULL, "rect == NULL\n"); ok(rect != rect2, "rect == rect2\n"); @@ -5207,6 +5206,7 @@ static void test_elem_bounding_client_rect(IUnknown *unk) test_disp((IUnknown*)rects, &IID_IHTMLRectCollection, NULL, "[object]"); IHTMLRectCollection_Release(rects); + IHTMLElement2_Release(elem2); } static void test_elem_col_item(IHTMLElementCollection *col, const char *n,