(register_font_driver): Use xmalloc.
(font_put_frame_data): Likewise.
This commit is contained in:
parent
d78494f962
commit
c115043bf3
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue