summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-11-06 10:10:50 -0500
committerChris Michael <cp.michael@samsung.com>2017-11-06 10:10:50 -0500
commit04d1fe7299f73376902ec3d28e5568ed52e9b374 (patch)
treef9aacc62b76a1d189d97a79ad00632f9d2e3531d
parent01920b996ad0ab14c454e0aa9e7a876408b6ed62 (diff)
evas-object-main: Fix null dereference
Coverity reports that EVAS_OBJECT_DATA_SAFE_GET returns NULL here (184 out of 188 times). The _all_animation_objects_cancel function directly dereferences the obj parameter passed into it, so lets null check it before calling that function. Fixes Coverity CID1381710 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/evas/canvas/evas_object_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index 65b1817b4a..4ed5888cd5 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -209,7 +209,7 @@ _animation_intercept_hide(void *data, Evas_Object *eo_obj)
{
event_anim->hide_anim_started = EINA_TRUE;
- _all_animation_objects_cancel(obj);
+ if (obj) _all_animation_objects_cancel(obj);
//Create animation object to start animation
event_anim->anim_obj = efl_animation_object_create(event_anim->anim);