gdi32: Fix fontconfig objects leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-12-22 11:35:33 +03:00 committed by Alexandre Julliard
parent 2d16e6e59c
commit dfcd8f85f1
1 changed files with 2 additions and 2 deletions

View File

@ -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