[PATCH] gdi32: Don't enumerate font when OpenFontFace fails.

Dmitry Timoshkov dmitry at baikal.ru
Thu Dec 6 01:42:10 CST 2012

Qian Hong <fracting at gmail.com> wrote:

> -    GetEnumStructs( face, &elf, &ntm, &type );
> +    if (!get_enum_structs( face, &elf, &ntm, &type )) return FALSE;
>      free_family( family );

'face' and 'family' are leaked here. Also returning FALSE at this point
is too late since both 'face' and 'family' are already in the linked lists.


More information about the wine-devel mailing list