edje: correct NULL check. Happy SeoZ :-)
authorcedric <cedric>
Thu, 6 Sep 2012 10:05:34 +0000 (10:05 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 6 Sep 2012 10:05:34 +0000 (10:05 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@76235 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index e9ff562..093145b 100644 (file)
@@ -5083,9 +5083,7 @@ _edje_real_part_swallow(Edje_Real_Part *rp,
                                  rp);
 
    //If the map is enabled, uv should be updated when image size is changed.
-   if (rp->swallowed_object &&
-       evas_object_type_get(rp->swallowed_object) &&
-       !strcmp(evas_object_type_get(rp->swallowed_object), "image"))
+   if (!strcmp(evas_object_type_get(rp->swallowed_object), "image"))
      evas_object_event_callback_add(obj_swallow, EVAS_CALLBACK_IMAGE_RESIZE,
                                     _edje_object_part_swallow_image_resize_cb,
                                     rp);
@@ -5118,6 +5116,7 @@ _edje_real_part_swallow(Edje_Real_Part *rp,
 void
 _edje_real_part_swallow_clear(Edje_Real_Part *rp)
 {
+   if (!rp->swallowed_object) return ;
    evas_object_smart_member_del(rp->swallowed_object);
    evas_object_event_callback_del_full(rp->swallowed_object,
                                        EVAS_CALLBACK_DEL,