summaryrefslogtreecommitdiff
path: root/src/lib/evas
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 /src/lib/evas
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>
Diffstat (limited to 'src/lib/evas')
-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)
209 { 209 {
210 event_anim->hide_anim_started = EINA_TRUE; 210 event_anim->hide_anim_started = EINA_TRUE;
211 211
212 _all_animation_objects_cancel(obj); 212 if (obj) _all_animation_objects_cancel(obj);
213 213
214 //Create animation object to start animation 214 //Create animation object to start animation
215 event_anim->anim_obj = efl_animation_object_create(event_anim->anim); 215 event_anim->anim_obj = efl_animation_object_create(event_anim->anim);