+2009-06-30 Chong Yidong <cyd@stupidchicken.com>
+
+ * xftfont.c (xftfont_open): Avoid passing NULL argument to
+ XftLockFace.
+
2009-06-28 David Reitter <david.reitter@gmail.com>
* nsterm.m (keydown): Avoid infinite loop.
match = XftFontMatch (display, FRAME_X_SCREEN_NUMBER (f), pat, &result);
FcPatternDestroy (pat);
xftfont = XftFontOpenPattern (display, match);
- ft_face = XftLockFace (xftfont);
- UNBLOCK_INPUT;
-
if (! xftfont)
{
+ UNBLOCK_INPUT;
XftPatternDestroy (match);
return Qnil;
}
+ ft_face = XftLockFace (xftfont);
+ UNBLOCK_INPUT;
+
/* 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);