From: Changyeon Lee Date: Mon, 27 May 2024 07:45:04 +0000 (+0900) Subject: e_info_server: do not get data of image_object if snapshot is set X-Git-Tag: accepted/tizen/unified/20240711.011457~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F314226%2F1;p=platform%2Fupstream%2Fenlightenment.git 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 --- 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);