forked from enlightenment/efl
Edje edit: Free textblock styles with the proper function
This commit is contained in:
parent
1caea15703
commit
1ab1b24e4e
|
@ -2689,7 +2689,7 @@ edje_edit_style_del(Evas_Object *obj, const char *style)
|
||||||
ed->file->styles = eina_list_remove(ed->file->styles, s);
|
ed->file->styles = eina_list_remove(ed->file->styles, s);
|
||||||
|
|
||||||
_edje_if_string_free(ed, (const char **)&s->name);
|
_edje_if_string_free(ed, (const char **)&s->name);
|
||||||
//~ //s->style HOWTO FREE ???
|
evas_textblock_style_free(s->style);
|
||||||
while (s->tags)
|
while (s->tags)
|
||||||
{
|
{
|
||||||
Edje_Style_Tag *t;
|
Edje_Style_Tag *t;
|
||||||
|
@ -2702,7 +2702,6 @@ edje_edit_style_del(Evas_Object *obj, const char *style)
|
||||||
_edje_if_string_free(ed, &t->font);
|
_edje_if_string_free(ed, &t->font);
|
||||||
_edje_if_string_free(ed, &t->text_class);
|
_edje_if_string_free(ed, &t->text_class);
|
||||||
free(t);
|
free(t);
|
||||||
t = NULL;
|
|
||||||
}
|
}
|
||||||
free(s);
|
free(s);
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
|
Loading…
Reference in New Issue