(font_put_frame_data): Likewise.
+2008-12-01 Andreas Schwab <schwab@suse.de>
+
+ * font.c (register_font_driver): Use xmalloc.
+ (font_put_frame_data): Likewise.
+
2008-12-01 Chong Yidong <cyd@stupidchicken.com>
* xfaces.c (realize_x_face): Make abort condition clearer.
if (EQ (list->driver->type, driver->type))
error ("Duplicated font driver: %s", SDATA (SYMBOL_NAME (driver->type)));
- list = malloc (sizeof (struct font_driver_list));
+ list = xmalloc (sizeof (struct font_driver_list));
list->on = 0;
list->driver = driver;
list->next = NULL;
if (! list)
{
- list = malloc (sizeof (struct font_data_list));
- if (! list)
- return -1;
+ list = xmalloc (sizeof (struct font_data_list));
list->driver = driver;
list->next = f->font_data_list;
f->font_data_list = list;