Commit 5c629bf6 authored by Chong Yidong's avatar Chong Yidong
Browse files

(xftfont_open): Free Xft font pattern if XftFontOpenPattern fails.

parent e2cbc401
......@@ -279,7 +279,10 @@ xftfont_open (f, entity, pixel_size)
if (! xftfont)
return Qnil;
XftPatternDestroy (match);
return Qnil;
/* We should not destroy PAT here because it is kept in XFTFONT and
destroyed automatically when XFTFONT is closed. */
font_object = font_make_object (VECSIZE (struct xftfont_info), entity, size);
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