evas_device: fix evas pointer data to prevent dangling. 98/303798/2 accepted/tizen_unified_riscv accepted/tizen/unified/20240109.155400 accepted/tizen/unified/riscv/20240110.014516
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 5 Jan 2024 04:50:00 +0000 (13:50 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Fri, 5 Jan 2024 04:57:09 +0000 (13:57 +0900)
commit750dddde69301fa612e9030dc263591e5800195c
treec0955d018c5df6b0a6d98857b7f1637f8c11fe74
parent1ceef89edb03b044bd5013eb966de26886d926e7
evas_device: fix evas pointer data to prevent dangling.

Evas_Pointer_Data is created when device is added.
Multiple Evas_Object can own Evas_Pointer_Data, so I added ref count to
manage pointer.
I fix default ref count to 1. so even if Evas_Object is deleted, ref
count does not become 0.

Change-Id: I8743eab91024c68339a79a4299761fd1a06be2ce
src/lib/evas/canvas/evas_device.c
src/lib/evas/canvas/evas_main.c