[PATCH] gdi32: Fix fontconfig objects leak (Valgrind).
22 Dec
2018
22 Dec
'18
8:35 a.m.
Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- 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 9f6bdfe49a..c38108eece 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 -- 2.19.2
2550
Age (days ago)
2550
Last active (days ago)
1 comments
2 participants
participants (2)
-
Huw Davies -
Nikolay Sivov