summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_engine.c
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2020-08-05 17:02:13 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2020-08-05 17:02:13 +0900
commit8265c6a98f4720a5b58c068a0495dd1a52d90470 (patch)
tree876df6d0bca7f1d2c57b2d6bc23ebf82a05da807 /src/modules/evas/engines/wayland_shm/evas_engine.c
parent19b603166a49a144ea41e7d51261cc8fb69cda7e (diff)
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
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.c b/src/modules/evas/engines/wayland_shm/evas_engine.c
index 3a3623a567..041dfa9e54 100644
--- a/src/modules/evas/engines/wayland_shm/evas_engine.c
+++ b/src/modules/evas/engines/wayland_shm/evas_engine.c
@@ -243,6 +243,8 @@ eng_image_native_set(void *engine EINA_UNUSED, void *image, void *native)
243 NULL, 1, 243 NULL, 1,
244 EVAS_COLORSPACE_ARGB8888); 244 EVAS_COLORSPACE_ARGB8888);
245 245
246 EINA_SAFETY_ON_NULL_RETURN_VAL(im2, im);
247
246 if (im->native.data) 248 if (im->native.data)
247 { 249 {
248 if (im->native.func.free) 250 if (im->native.func.free)