summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_inputs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_inputs.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_inputs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_inputs.c b/src/lib/ecore_drm/ecore_drm_inputs.c
index 544c3b262c..e568ed3a35 100644
--- a/src/lib/ecore_drm/ecore_drm_inputs.c
+++ b/src/lib/ecore_drm/ecore_drm_inputs.c
@@ -228,9 +228,11 @@ _cb_input_event(const char *device, Eeze_Udev_Event event, void *data, Eeze_Udev
228 { 228 {
229 const char *node; 229 const char *node;
230 230
231 node = eeze_udev_syspath_get_devpath(device); 231 if ((node = eeze_udev_syspath_get_devpath(device)))
232 _device_remove(input, node); 232 {
233 eina_stringshare_del(node); 233 _device_remove(input, node);
234 eina_stringshare_del(node);
235 }
234 } 236 }
235 break; 237 break;
236 default: 238 default: