Commit f8cb60f6 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Always consume the subst structure.

parent 2c7867a1
...@@ -568,6 +568,9 @@ static BOOL add_font_subst(struct list *subst_list, FontSubst *subst, INT flags) ...@@ -568,6 +568,9 @@ static BOOL add_font_subst(struct list *subst_list, FontSubst *subst, INT flags)
return TRUE; return TRUE;
} }
HeapFree(GetProcessHeap(), 0, subst->from.name);
HeapFree(GetProcessHeap(), 0, subst->to.name);
HeapFree(GetProcessHeap(), 0, subst);
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment