If viewer try to remove handle without removing evas object,
handle remain in watcher list.
Change-Id: I88f04d69ad56aa6b380e430d94b733c86d07f2f2
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit
de30a1b347eeb91c75de828647f65f6b7b89bd45)
handle->surface = NULL;
}
+ if (__pending_watcher_list)
+ __pending_watcher_list = g_list_remove(__pending_watcher_list, handle);
+
+ if (__watcher_list)
+ __watcher_list = g_list_remove(__watcher_list, handle);
+
if (handle->appid) {
free(handle->appid);
handle->appid = NULL;