ecore-drm: Added cleanup data code as a error handling of connect logind.

Summary: need to clean also dbus, when failed open VT as a connection progress of logind.

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1756
This commit is contained in:
Seunghun Lee 2014-12-10 08:00:17 -05:00 committed by Chris Michael
parent a138716746
commit 31ac7989d4
1 changed files with 8 additions and 8 deletions

View File

@ -254,18 +254,18 @@ _ecore_drm_logind_connect(Ecore_Drm_Device *dev)
/* try to init dbus */
if (!_ecore_drm_dbus_init(sid))
{
free(sid);
return EINA_FALSE;
}
goto dbus_err;
if (!_ecore_drm_logind_vt_open(dev, NULL))
{
free(sid);
return EINA_FALSE;
}
goto vt_err;
return EINA_TRUE;
vt_err:
_ecore_drm_dbus_shutdown();
dbus_err:
free(sid);
return EINA_FALSE;
}
void