From c89a567f7cdf36efbd4c44a9705ca4832a48a184 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Mon, 27 May 2024 16:45:04 +0900 Subject: [PATCH] e_info_server: do not get data of image_object if snapshot is set fix crash in evas after evas_object_image_data_get is called. Change-Id: I911d6d3c1d2d20849df31fd60d537d2868ff7dde --- src/bin/debug/e_info_server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/debug/e_info_server.c b/src/bin/debug/e_info_server.c index 34faf11..eb875da 100644 --- a/src/bin/debug/e_info_server.c +++ b/src/bin/debug/e_info_server.c @@ -796,7 +796,10 @@ _compobj_info_get(Evas_Object *po, Evas_Object *o, int depth) cobj->img.key = eina_stringshare_add(key); } - cobj->img.data = (uintptr_t)evas_object_image_data_get(o, 0); + if (evas_object_image_snapshot_get(o)) + cobj->img.data = 0; + else + cobj->img.data = (uintptr_t)evas_object_image_data_get(o, 0); } evas_object_image_size_get(o, &cobj->img.w, &cobj->img.h); -- 2.7.4