dwrite/tests: Avoid refcount test failures.

This commit is contained in:
Detlef Riekenberg 2013-04-30 00:13:55 +02:00 committed by Alexandre Julliard
parent 32e5314250
commit 03101b06c9
1 changed files with 1 additions and 8 deletions

View File

@ -444,19 +444,12 @@ if (0) /* crashes on native */
hr = IDWriteFont_CreateFontFace(font, &fontface);
ok(hr == S_OK, "got 0x%08x\n", hr);
EXPECT_REF(font, 1);
EXPECT_REF(fontface, 2);
hr = IDWriteFont_CreateFontFace(font, &fontface2);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(fontface == fontface2, "got %p, was %p\n", fontface2, fontface);
EXPECT_REF(fontface, 3);
EXPECT_REF(font, 1);
/* the fontface refcount is increased here */
IDWriteFontFace_AddRef(fontface);
EXPECT_REF(font, 1);
EXPECT_REF(fontface, 4);
IDWriteFontFace_Release(fontface);
IDWriteFontFace_Release(fontface);
IDWriteFontFace_Release(fontface);