Commit 9844d73b authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

ddraw/tests: Destroy viewport in test_lighting_interface_versions() (Valgrind).

parent d2fa2624
...@@ -3996,6 +3996,7 @@ static void test_lighting_interface_versions(void) ...@@ -3996,6 +3996,7 @@ static void test_lighting_interface_versions(void)
destroy_material(background); destroy_material(background);
destroy_material(emissive); destroy_material(emissive);
destroy_viewport(device, viewport);
IDirectDrawSurface_Release(rt); IDirectDrawSurface_Release(rt);
IDirect3DDevice2_Release(device); IDirect3DDevice2_Release(device);
ref = IDirectDraw2_Release(ddraw); ref = IDirectDraw2_Release(ddraw);
......
...@@ -4894,6 +4894,7 @@ static void test_lighting_interface_versions(void) ...@@ -4894,6 +4894,7 @@ static void test_lighting_interface_versions(void)
} }
destroy_material(emissive); destroy_material(emissive);
destroy_viewport(device, viewport);
IDirectDrawSurface4_Release(rt); IDirectDrawSurface4_Release(rt);
ref = IDirect3DDevice3_Release(device); ref = IDirect3DDevice3_Release(device);
ok(ref == 0, "Device not properly released, refcount %u.\n", ref); ok(ref == 0, "Device not properly released, refcount %u.\n", ref);
......
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