TPL_LOG_T("WL_EGL", "gsource(%p) event_fd(%d)",
source, del_source->event_fd);
- g_source_remove_unix_fd(source, del_source->tag);
-
close(del_source->event_fd);
del_source->tag = NULL;
void
_twe_del_source_fini(twe_del_source *source)
{
+ g_source_remove_unix_fd(&source->gsource, source->tag);
g_source_destroy(&source->gsource);
g_source_unref(&source->gsource);
}
TPL_LOG_T("WL_EGL", "tdm_destroy| tdm_source(%p) tdm_client(%p)",
tdm_source, tdm_source->tdm_client);
- g_source_remove_unix_fd(source, tdm_source->tag);
-
if (tdm_source->tdm_client) {
tdm_client_destroy(tdm_source->tdm_client);
tdm_source->tdm_client = NULL;
g_mutex_lock(&_twe_ctx->thread_mutex);
+ g_source_remove_unix_fd(&tdm_source->gsource, tdm_source->tag);
g_source_destroy(&tdm_source->gsource);
g_source_unref(&tdm_source->gsource);
TPL_LOG_T("WL_EGL", "gsource(%p) event_fd(%d)",
source, surf_source->event_fd);
- g_source_remove_unix_fd(source, surf_source->tag);
-
close(surf_source->event_fd);
surf_source->event_fd = -1;
TPL_OBJECT_UNLOCK(&disp_source->obj);
+ g_source_remove_unix_fd(&surf_source->gsource, surf_source->tag);
g_source_destroy(&surf_source->gsource);
g_source_unref(&surf_source->gsource);