forked from enlightenment/efl
NULL sfont as it might be used earlier.
if sfont=something was given to _edje_text_class_font_get(), sfont might be untouched there and old pointer was being freed, resulting in double free. So make sure we're using the correct pointer there. SVN revision: 41714
This commit is contained in:
parent
09bb18e727
commit
4a514076ad
|
@ -830,6 +830,7 @@ _edje_part_recalc_single_text(double sc,
|
|||
}
|
||||
|
||||
/* FIXME: Do we really need to call it twice if chosen_desc ? */
|
||||
sfont = NULL;
|
||||
font = _edje_text_class_font_get(ed, desc, &size, &sfont);
|
||||
free(sfont);
|
||||
params->type.text.size = size;
|
||||
|
|
Loading…
Reference in New Issue