evas-object-main: Fix null dereference
authorChris Michael <cp.michael@samsung.com>
Mon, 6 Nov 2017 15:13:08 +0000 (10:13 -0500)
committerChris Michael <cp.michael@samsung.com>
Mon, 6 Nov 2017 15:13:08 +0000 (10:13 -0500)
commit6c76fdb8245fb6dc4226cb7b0707aa93f1d9422a
tree8960f373523412d606c0fb2fc9e4b83b4f243d1e
parent04d1fe7299f73376902ec3d28e5568ed52e9b374
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 CID1381711

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/evas/canvas/evas_object_main.c