remove unnecessary stringshares

SVN revision: 48865
This commit is contained in:
Mike Blumenkrantz 2010-05-14 17:55:03 +00:00
parent 2fb9ac1f9e
commit 2301b57acf
1 changed files with 5 additions and 18 deletions

View File

@ -160,28 +160,15 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
default: default:
break; break;
} }
test = eina_stringshare_add(udev_device_get_action(device)); test = udev_device_get_action(device);
if (!test) if (!test)
{ goto error;
udev_device_unref(device);
return 1;
}
ret = eina_stringshare_add(udev_device_get_syspath(device));
if (!ret)
{
udev_device_unref(device);
eina_stringshare_del(test);
return 1;
}
udev_device_unref(device); ret = udev_device_get_syspath(device);
if (!ret)
goto error;
(*func)(ret, test, sdata, watch); (*func)(ret, test, sdata, watch);
eina_stringshare_del(test);
eina_stringshare_del(ret);
return 1;
error: error:
udev_device_unref(device); udev_device_unref(device);
return 1; return 1;