summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-14 16:15:05 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:20 -0700
commit33c278b8986d4eda17099b49efe33ce3ab8286ad (patch)
treea6f22df99192ae404cf40d05139ff5d548de79ab
parent062471b5ee624a0ca74d40fe3427d8dbfb8fd380 (diff)
downloadefl-33c278b8986d4eda17099b49efe33ce3ab8286ad.tar.gz
evas: detect incoherency in object content and report problem.
-rw-r--r--src/lib/evas/canvas/evas_layer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_layer.c b/src/lib/evas/canvas/evas_layer.c
index 16cca2a4aa..d4e2eb3469 100644
--- a/src/lib/evas/canvas/evas_layer.c
+++ b/src/lib/evas/canvas/evas_layer.c
@@ -106,7 +106,11 @@ evas_layer_free_objects(Evas_Layer *lay)
EINA_INLIST_FREE(lay->objects, obj)
{
- evas_object_free(obj->object, EINA_FALSE);
+ if (obj->object == NULL)
+ {
+ ERR("Object still present in the canvas stack, but without a valid object pointer (%s@%p).", obj->type, obj);
+ }
+ evas_object_free(obj, EINA_FALSE);
}
}