ecore-drm: close fd when asked to close fd

Summary:
the logind device close function just lets logind revoke fd permissions
but doesn't actually close the (now useless) fd.

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2457
This commit is contained in:
Derek Foreman 2015-04-30 14:31:07 -04:00 committed by Chris Michael
parent f7ae5f28d4
commit ccbcf3db0b
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ _ecore_drm_launcher_device_open_no_pending(const char *device, int flags)
void
_ecore_drm_launcher_device_close(const char *device, int fd)
{
if ((logind) && (device))
return _ecore_drm_logind_device_close(device);
if ((logind) && (device)) _ecore_drm_logind_device_close(device);
close(fd);
}