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:
parent
19b603166a
commit
8265c6a98f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue