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:
Gustavo Sverzut Barbieri 2009-08-12 17:57:34 +00:00
parent 09bb18e727
commit 4a514076ad
1 changed files with 1 additions and 0 deletions

View File

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