Nikolay Sivov : gdi32: Fix fontconfig objects leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Dec 24 14:35:00 CST 2018


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Dec 22 11:35:33 2018 +0300

gdi32: Fix fontconfig objects leak (Valgrind).

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

---

 dlls/gdi32/freetype.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 9f6bdfe..c38108e 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -5279,8 +5279,8 @@ found:
         TRACE("got %s\n", wine_dbgstr_w(nameW));
 
 end:
-    if (!pat) pFcPatternDestroy(pat);
-    if (!best) pFcPatternDestroy(best);
+    pFcPatternDestroy(pat);
+    pFcPatternDestroy(best);
     return family;
 }
 #endif




More information about the wine-cvs mailing list