summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_input_event.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-28 11:27:56 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-28 12:30:36 +0900
commit96d94e0076773d6b29107035dc61f5df01a3347f (patch)
treee5795f208a5dd9c7d04da8edfb3ae9e07730506b /src/lib/evas/canvas/efl_input_event.eo
parent3dc140abfb30b94eae3093fd565f2f111c03be04 (diff)
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
Diffstat (limited to 'src/lib/evas/canvas/efl_input_event.eo')
-rw-r--r--src/lib/evas/canvas/efl_input_event.eo11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/efl_input_event.eo b/src/lib/evas/canvas/efl_input_event.eo
index 51679e85f9..b90f918221 100644
--- a/src/lib/evas/canvas/efl_input_event.eo
+++ b/src/lib/evas/canvas/efl_input_event.eo
@@ -31,8 +31,15 @@ mixin Efl.Input.Event (Efl.Interface, Efl.Object)
31 [[Resets the internal data to 0 or default values.]] 31 [[Resets the internal data to 0 or default values.]]
32 } 32 }
33 dup @pure_virtual { 33 dup @pure_virtual {
34 [[Creates a copy of this event.]] 34 [[Creates a copy of this event.
35 return: Efl.Input.Event @owned; [[Event copy]] 35
36 The returned event object is similar to the given object in most
37 ways except that @.fake will be $true.
38
39 Note: A reference is given to the caller. In order to avoid leaks
40 the C API users should call $efl_unref() after use.
41 ]]
42 return: Efl.Input.Event @owned; [[Event copy, marked as @.fake.]]
36 } 43 }
37 @property device @pure_virtual { 44 @property device @pure_virtual {
38 [[Input device that originated this event.]] 45 [[Input device that originated this event.]]