Nikolay Sivov : dwrite/tests: Fix object instance leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Oct 16 14:38:31 CDT 2017


Module: wine
Branch: master
Commit: e3a29a6c1d3f4655ccee888588f7449487f1778d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e3a29a6c1d3f4655ccee888588f7449487f1778d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Oct 16 11:55:39 2017 +0300

dwrite/tests: Fix object instance leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dwrite/tests/font.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c
index 4adb022..c28f27a 100644
--- a/dlls/dwrite/tests/font.c
+++ b/dlls/dwrite/tests/font.c
@@ -7924,6 +7924,9 @@ static void test_inmemory_file_loader(void)
     IDWriteFontFileStream_Release(stream);
     IDWriteFontFace_Release(fontface);
 
+    ref = IDWriteInMemoryFontFileLoader_Release(inmemory);
+    ok(ref == 0, "loader not released, %u.\n", ref);
+
     ref = IDWriteFactory5_Release(factory);
     ok(ref == 0, "factory not released, %u\n", ref);
 }




More information about the wine-cvs mailing list