Skip to content
Snippets Groups Projects
Commit 328d834a authored by Haoyang Chen's avatar Haoyang Chen Committed by Michael Stefaniuc
Browse files

gdi32: Fix a memory leak.


Signed-off-by: default avatarHaoyang Chen <chenhaoyang@uniontech.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
(cherry picked from commit 4b9c4e42)
Signed-off-by: default avatarMichael Stefaniuc <mstefani@winehq.org>
parent fb532285
No related branches found
No related tags found
No related merge requests found
......@@ -1538,9 +1538,10 @@ static UINT parse_aa_pattern( FcPattern *pattern )
static FcPattern *create_family_pattern( const char *name, FcPattern **cached )
{
FcPattern *ret = NULL, *tmp, *pattern = pFcPatternCreate();
FcPattern *ret = NULL, *tmp, *pattern;
FcResult result;
if (*cached) return *cached;
pattern = pFcPatternCreate();
pFcPatternAddString( pattern, FC_FAMILY, (const FcChar8 *)name );
pFcPatternAddString( pattern, FC_NAMELANG, (const FcChar8 *)"en-us" );
pFcPatternAddString( pattern, FC_PRGNAME, (const FcChar8 *)"wine" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment