evas: Fix sigsegv after font rehint

If a text object is rehinted after it is deleted,
baaad things happen. Mark Evas_Object_Text as dead by
setting font to NULL.

Note the crash happened with cserve2 and maybe not in normal
cases.
This commit is contained in:
Jean-Philippe Andre 2013-08-27 12:43:22 +09:00
parent 54ef511197
commit cafa763817
1 changed files with 1 additions and 0 deletions

View File

@ -1923,6 +1923,7 @@ evas_object_text_free(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
if (o->cur.text) free(o->cur.text);
if (o->font && obj->layer && obj->layer->evas)
evas_font_free(obj->layer->evas->evas, o->font);
o->font = NULL;
#ifdef BIDI_SUPPORT
evas_bidi_paragraph_props_unref(o->bidi_par_props);
#endif