source = (twe_del_source *)g_source_new(&_twe_del_source_funcs,
sizeof(twe_del_source));
if (!source) {
- TPL_ERR("[THREAD] Failed to create GSource");
+ TPL_ERR("[THREAD] Failed to create twe_del_source.");
return NULL;
}
source = (twe_wl_disp_source *)g_source_new(&_twe_wl_disp_funcs,
sizeof(twe_wl_disp_source));
+ if (!source) {
+ TPL_ERR("Failed to create twe_wl_disp_source.");
+ return NULL;
+ }
+
source->disp = display;
source->ev_queue = ev_queue;
source->wl_tbm_client = wl_tbm_client;
twe_thread_context *ctx = thread->ctx;
twe_wl_surf_source *source = NULL;
twe_wl_disp_source *disp_source = (twe_wl_disp_source *)twe_display;
- GIOChannel *event_channel = NULL;
gboolean is_destroyed = FALSE;
tbm_surface_queue_h tbm_queue = NULL;
source = (twe_wl_surf_source *)g_source_new(&_twe_wl_surface_funcs,
sizeof(twe_wl_surf_source));
if (!source) {
- TPL_ERR("[THREAD] Failed to create GSource from event_channel(%p)",
- event_channel);
+ TPL_ERR("[THREAD] Failed to create twe_wl_surf_source");
return NULL;
}