Commit c115043b authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(register_font_driver): Use xmalloc.

(font_put_frame_data): Likewise.
parent d78494f9
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.
......
......@@ -3451,7 +3451,7 @@ register_font_driver (driver, f)
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;
......@@ -3577,9 +3577,7 @@ font_put_frame_data (f, driver, data)
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;
......
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