discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ea4ae1102368c1f752b4b4d507db9cae693fbf59

commit ea4ae1102368c1f752b4b4d507db9cae693fbf59
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jul 28 15:44:43 2017 -0400

    elput: unref devices in post event cb
    
    @fix
---
 src/lib/elput/elput_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 
    ev = event;
 
+   ev->device->refs--;
    if (ev->type == ELPUT_DEVICE_REMOVED)
      {
         Elput_Seat *seat;
@@ -174,7 +175,6 @@ _device_event_cb_free(void *data EINA_UNUSED, void *event)
         if (seat)
           seat->devices = eina_list_remove(seat->devices, ev->device);
 
-        ev->device->refs--;
         _evdev_device_destroy(ev->device);
      }
 

-- 


Reply via email to