forked from enlightenment/efl
re-add stringshare to monitor return, but now decrement refcount; this allows for direct pointer comparison
SVN revision: 48954
This commit is contained in:
parent
b8821033ae
commit
3cd8279021
|
@ -151,10 +151,11 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
|||
ret = udev_device_get_syspath(device);
|
||||
if (!ret)
|
||||
goto error;
|
||||
|
||||
ret = eina_stringshare_add(ret);
|
||||
(*func)(ret, test, sdata, watch);
|
||||
error:
|
||||
udev_device_unref(device);
|
||||
eina_stringshare_del(ret);
|
||||
return 1;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue