evas: fix dereference after null check 76/230576/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 10 Apr 2020 12:45:22 +0000 (08:45 -0400)
committerWooHyun Jung <wh0705.jung@samsung.com>
Mon, 13 Apr 2020 01:38:26 +0000 (01:38 +0000)
commitb83604fc1649503b8d2a8564f7aa5ceadc84f63d
treee7cfc9703047a15bbe375164dfd4d568f721f19d
parent9b73ffe92e8adb0f97494e29cdee6aa966eed072
evas: fix dereference after null check

Summary:
Static analysis tool reports passing a null pointer 'im->gc' to
_evas_gl_image_cache_add which directly dereferences it, so lets
be sure that 'im->gc' is valid before passing it to cache_add

Reviewers: Hermet, jsuya, herb, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11676

Change-Id: I19652a95320216c141a7b7acd64e1de5403107cc