evas: Fix dangling references with input devices
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 02:27:56 +0000 (11:27 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 03:30:36 +0000 (12:30 +0900)
commit96d94e0076773d6b29107035dc61f5df01a3347f
treee5795f208a5dd9c7d04da8edfb3ae9e07730506b
parent3dc140abfb30b94eae3093fd565f2f111c03be04
evas: Fix dangling references with input devices

This solves issues with efl_input_dup() which didn't properly give a
reference to the caller, resulting in dangling eo ids.

Note: This may trigger leaks (instead of invalid refs), but this now
actually reflects the meaning of @owned. This should work with bindings
and C API users should know to call efl_unref().

This patch is the reason for the previous improvements on eo_debug.

@fix
src/lib/efl/interfaces/efl_common_internal.h
src/lib/evas/canvas/efl_input_event.eo
src/lib/evas/canvas/efl_input_focus.c
src/lib/evas/canvas/efl_input_hold.c
src/lib/evas/canvas/efl_input_key.c
src/lib/evas/canvas/efl_input_pointer.c
src/lib/evas/canvas/evas_device.c
src/lib/evas/canvas/evas_focus.c