/* ftxfont.c -- FreeType font driver on X (without using XFT).
- Copyright (C) 2006-2013 Free Software Foundation, Inc.
+ Copyright (C) 2006-2014 Free Software Foundation, Inc.
Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H13PRO009
static Lisp_Object Qftx;
-#if defined HAVE_XFT || !defined HAVE_FREETYPE
-static
-#endif
struct font_driver ftxfont_driver;
struct ftxfont_frame_data
}
}
- new = malloc (sizeof *new);
+ new = xmalloc_unsafe (sizeof *new);
if (! new)
return NULL;
new->next = this;
}
else if (font_put_frame_data (f, &ftxfont_driver, new) < 0)
{
- free (new);
+ xfree (new);
return NULL;
}
prev->next = new->next;
else if (data)
font_put_frame_data (f, &ftxfont_driver, new->next);
- free (new);
+ xfree (new);
return NULL;
}
return new->gcs;
for (i = 0; i < 6; i++)
XFreeGC (FRAME_X_DISPLAY (f), data->gcs[i]);
- free (data);
+ xfree (data);
data = next;
}
unblock_input ();