evas/engine: fix a potentional error of null deref

Summary: this is a patch to fix a potentional error by null dereferencing.

Reviewers: jsuya, bu5hm4n, Hermet

Reviewed By: jsuya, bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12091
This commit is contained in:
Wonki Kim 2020-08-05 17:02:13 +09:00 committed by JunsuChoi
parent 19b603166a
commit 8265c6a98f
1 changed files with 2 additions and 0 deletions

View File

@ -243,6 +243,8 @@ eng_image_native_set(void *engine EINA_UNUSED, void *image, void *native)
NULL, 1,
EVAS_COLORSPACE_ARGB8888);
EINA_SAFETY_ON_NULL_RETURN_VAL(im2, im);
if (im->native.data)
{
if (im->native.func.free)