Evas.Image: Fix ERR message (invalid call)
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 16 Mar 2016 10:03:41 +0000 (19:03 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 17 Mar 2016 04:10:35 +0000 (13:10 +0900)
There was an unintended change from a silent return to EINA_SAFETY
inside _evas_object_image_free(). This avoids calling the function
altogether.

src/lib/evas/canvas/evas_object_main.c

index 26959bf..71e0276 100644 (file)
@@ -241,7 +241,8 @@ evas_object_free(Evas_Object *eo_obj, int clean_layer)
 
    int was_smart_child = 0;
 
-   _evas_object_image_free(eo_obj);
+   if (eo_isa(eo_obj, EVAS_IMAGE_CLASS))
+     _evas_object_image_free(eo_obj);
    evas_object_map_set(eo_obj, NULL);
    if (obj->map->prev.map) evas_map_free(obj->map->prev.map);
    if (obj->map->cache_map) evas_map_free(obj->map->cache_map);