* font.c (font_find_for_lface): Ensure SAFE_FREE on return.

This commit is contained in:
Dmitry Antipov 2013-12-10 07:36:36 +04:00
parent 7d01e13ced
commit e8374b3959
2 changed files with 5 additions and 1 deletions

View file

@ -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>

View file

@ -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;
}
}
}
}