edje: destroy child and group correctly.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jun 2012 03:44:30 +0000 (03:44 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jun 2012 03:44:30 +0000 (03:44 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@72838 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_load.c

index 8e93248..e6efc96 100644 (file)
@@ -1139,7 +1139,6 @@ _edje_file_del(Edje *ed)
               }
             if (rp->swallowed_object)
               {
-                  _edje_real_part_swallow_clear(rp);
                   /* Objects swallowed by the app do not get deleted,
                    but those internally swallowed (GROUP type) do. */
                  switch (rp->part->type)
@@ -1153,6 +1152,7 @@ _edje_file_del(Edje *ed)
                     default:
                        break;
                    }
+                  _edje_real_part_swallow_clear(rp);
                  rp->swallowed_object = NULL;
               }
             if (rp->items)