gdi32: Always consume the subst structure.

This commit is contained in:
Huw Davies 2006-04-05 12:43:12 +01:00 committed by Alexandre Julliard
parent 2c7867a1c0
commit f8cb60f6c5
1 changed files with 3 additions and 0 deletions

View File

@ -568,6 +568,9 @@ static BOOL add_font_subst(struct list *subst_list, FontSubst *subst, INT flags)
return TRUE;
}
HeapFree(GetProcessHeap(), 0, subst->from.name);
HeapFree(GetProcessHeap(), 0, subst->to.name);
HeapFree(GetProcessHeap(), 0, subst);
return FALSE;
}