* font.c (font_find_for_lface): Ensure SAFE_FREE on return.
This commit is contained in:
parent
7d01e13ced
commit
e8374b3959
2 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
* xdisp.c (display_tool_bar_line): Don't extend on a previously
|
||||
drawn tool bar items (Bug#16058).
|
||||
* font.c (font_find_for_lface): Ensure SAFE_FREE on return.
|
||||
|
||||
2013-12-09 Ken Brown <kbrown@cornell.edu>
|
||||
|
||||
|
|
|
@ -3209,7 +3209,10 @@ font_find_for_lface (struct frame *f, Lisp_Object *attrs, Lisp_Object spec, int
|
|||
val = font_select_entity (f, entities,
|
||||
attrs, pixel_size, c);
|
||||
if (! NILP (val))
|
||||
return val;
|
||||
{
|
||||
SAFE_FREE ();
|
||||
return val;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue