summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-28 15:44:43 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-28 15:40:47 -0400
commitea4ae1102368c1f752b4b4d507db9cae693fbf59 (patch)
tree4a8f92eb608918653b1d9a4d3e5a4ca0393d8029 /src/lib/elput
parentb43a2d55e1b20b992c42d90ab1f9d6b83e76870e (diff)
elput: unref devices in post event cb
@fix
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c
index 4210aedbe4..90246119e0 100644
--- a/src/lib/elput/elput_input.c
+++ b/src/lib/elput/elput_input.c
@@ -166,6 +166,7 @@ _device_event_cb_free(void *data EINA_UNUSED, void *event)
166 166
167 ev = event; 167 ev = event;
168 168
169 ev->device->refs--;
169 if (ev->type == ELPUT_DEVICE_REMOVED) 170 if (ev->type == ELPUT_DEVICE_REMOVED)
170 { 171 {
171 Elput_Seat *seat; 172 Elput_Seat *seat;
@@ -174,7 +175,6 @@ _device_event_cb_free(void *data EINA_UNUSED, void *event)
174 if (seat) 175 if (seat)
175 seat->devices = eina_list_remove(seat->devices, ev->device); 176 seat->devices = eina_list_remove(seat->devices, ev->device);
176 177
177 ev->device->refs--;
178 _evdev_device_destroy(ev->device); 178 _evdev_device_destroy(ev->device);
179 } 179 }
180 180