dxdiagn/tests: Fix a couple of leaks (Valgrind).
This commit is contained in:
parent
4ae80d15d9
commit
2c59f6fe46
|
@ -701,6 +701,7 @@ static void test_GetProp(void)
|
||||||
IDxDiagContainer_AddRef(child);
|
IDxDiagContainer_AddRef(child);
|
||||||
ref = IDxDiagContainer_Release(child);
|
ref = IDxDiagContainer_Release(child);
|
||||||
ok(ref == 2, "Expected reference count to be 2, got %u\n", ref);
|
ok(ref == 2, "Expected reference count to be 2, got %u\n", ref);
|
||||||
|
IDxDiagContainer_Release(child);
|
||||||
|
|
||||||
IDxDiagContainer_Release(child);
|
IDxDiagContainer_Release(child);
|
||||||
cleanup:
|
cleanup:
|
||||||
|
@ -1010,6 +1011,7 @@ static void test_DxDiag_DisplayDevices(void)
|
||||||
trace("Testing container %s\n", wine_dbgstr_w(child_container));
|
trace("Testing container %s\n", wine_dbgstr_w(child_container));
|
||||||
test_container_properties(child, property_tests, sizeof(property_tests)/sizeof(property_tests[0]));
|
test_container_properties(child, property_tests, sizeof(property_tests)/sizeof(property_tests[0]));
|
||||||
}
|
}
|
||||||
|
IDxDiagContainer_Release(child);
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
Loading…
Reference in New Issue