e_info_server: do not get data of image_object if snapshot is set 26/314226/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 27 May 2024 07:45:04 +0000 (16:45 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 9 Jul 2024 05:22:03 +0000 (14:22 +0900)
fix crash in evas after evas_object_image_data_get is called.

Change-Id: I911d6d3c1d2d20849df31fd60d537d2868ff7dde

src/bin/debug/e_info_server.c

index 34faf11..eb875da 100644 (file)
@@ -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);