dwrite/tests: Fix some leaks (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ec2c2f9fa0
commit
75b02759b0
|
@ -1778,6 +1778,7 @@ static void test_CreateFontFace(void)
|
||||||
UINT32 count;
|
UINT32 count;
|
||||||
WCHAR *path;
|
WCHAR *path;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
ULONG ref;
|
||||||
|
|
||||||
factory = create_factory();
|
factory = create_factory();
|
||||||
|
|
||||||
|
@ -1864,6 +1865,8 @@ static void test_CreateFontFace(void)
|
||||||
IDWriteFont_Release(font);
|
IDWriteFont_Release(font);
|
||||||
IDWriteFontFamily_Release(family);
|
IDWriteFontFamily_Release(family);
|
||||||
IDWriteFontCollection_Release(collection);
|
IDWriteFontCollection_Release(collection);
|
||||||
|
ref = IDWriteFactory_Release(factory);
|
||||||
|
ok(ref == 0, "factory not released, %u.\n", ref);
|
||||||
|
|
||||||
/* IDWriteFactory::CreateFontFace() */
|
/* IDWriteFactory::CreateFontFace() */
|
||||||
path = create_testfontfile(test_fontfile);
|
path = create_testfontfile(test_fontfile);
|
||||||
|
@ -1929,7 +1932,8 @@ todo_wine
|
||||||
}
|
}
|
||||||
|
|
||||||
IDWriteFontFile_Release(file);
|
IDWriteFontFile_Release(file);
|
||||||
IDWriteFactory_Release(factory);
|
ref = IDWriteFactory_Release(factory);
|
||||||
|
ok(ref == 0, "factory not released, %u.\n", ref);
|
||||||
DELETE_FONTFILE(path);
|
DELETE_FONTFILE(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4873,6 +4877,7 @@ static void test_IsMonospacedFont(void)
|
||||||
ULONG ref;
|
ULONG ref;
|
||||||
|
|
||||||
factory = create_factory();
|
factory = create_factory();
|
||||||
|
|
||||||
hr = IDWriteFactory_GetSystemFontCollection(factory, &collection, FALSE);
|
hr = IDWriteFactory_GetSystemFontCollection(factory, &collection, FALSE);
|
||||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
|
|
||||||
|
@ -4920,7 +4925,8 @@ static void test_IsMonospacedFont(void)
|
||||||
else
|
else
|
||||||
skip("Courier New font not found.\n");
|
skip("Courier New font not found.\n");
|
||||||
|
|
||||||
ref = IDWriteFontCollection_Release(collection);
|
IDWriteFontCollection_Release(collection);
|
||||||
|
ref = IDWriteFactory_Release(factory);
|
||||||
ok(ref == 0, "factory not released, %u\n", ref);
|
ok(ref == 0, "factory not released, %u\n", ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue