[PATCH 9/9] dxgi/tests: Release IDXGIFactory in test_swapchain_present().

Józef Kucia jkucia at codeweavers.com
Wed May 30 05:18:40 CDT 2018


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/dxgi/tests/device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c
index d9ffa50f7824..c192992020d6 100644
--- a/dlls/dxgi/tests/device.c
+++ b/dlls/dxgi/tests/device.c
@@ -3427,6 +3427,8 @@ static void test_swapchain_present(void)
     refcount = IDXGIDevice_Release(device);
     ok(!refcount, "Device has %u references left.\n", refcount);
     DestroyWindow(swapchain_desc.OutputWindow);
+    refcount = IDXGIFactory_Release(factory);
+    ok(!refcount, "Factory has %u references left.\n", refcount);
 }
 
 static void test_maximum_frame_latency(void)
-- 
2.16.1




More information about the wine-devel mailing list