aul_app_com_leave can not guarantee appcom handle is NULL
Change-Id: Ia4bc3974eb1784fd0eab55b8928575fc1ed653c2
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit
ad6cc276fe1511c154074fd97a3ff79d3dabd869)
if (conn_viewer) {
if (aul_app_com_leave(conn_viewer) < 0)
_E("failed to leave app com endpoint viewer");
+ conn_viewer = NULL;
}
if (conn_status) {
if (aul_app_com_leave(conn_status) < 0)
_E("failed to leave app com endpoint status");
+ conn_status = NULL;
}
if (viewer_appid) {