logind: actually close fd in weston_launcher_close()

You had one job...

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Acked-by: David Herrmann <dh.herrmann@gmail.com> [implicit from v1
comment]
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Derek Foreman 2015-04-30 14:37:03 -05:00 committed by Pekka Paalanen
parent b0f5a25d16
commit 8f5acc2f3a
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ void
weston_launcher_close(struct weston_launcher *launcher, int fd)
{
if (launcher->logind)
return weston_logind_close(launcher->logind, fd);
weston_logind_close(launcher->logind, fd);
close(fd);
}