edje_edit: delete swallowed object before unswallowing (for part type GROUP)

unswallowing set swallowed_object to NULL inside of
_edje_real_part_swallow_clear
so it is impossible to delete object anymore.
And so, changing sources leaves fantoms and undeleted objects.

@fix
This commit is contained in:
Vitalii Vorobiov 2016-08-02 16:46:40 +03:00
parent ea2b5e4048
commit dde1299182
1 changed files with 1 additions and 2 deletions

View File

@ -4092,9 +4092,8 @@ edje_edit_part_source_set(Evas_Object *obj, const char *part, const char *source
if ((rp->typedata.swallow) && (rp->typedata.swallow->swallowed_object))
{
_edje_real_part_swallow_clear(ed, rp);
evas_object_del(rp->typedata.swallow->swallowed_object);
rp->typedata.swallow->swallowed_object = NULL;
_edje_real_part_swallow_clear(ed, rp);
}
if (source)
{