From: Boram Park Date: Mon, 2 Apr 2018 06:37:57 +0000 (+0900) Subject: thread: not reset find_funcs table when deinit X-Git-Tag: accepted/tizen/unified/20180412.073819~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F174430%2F1;p=platform%2Fcore%2Fuifw%2Flibtdm.git thread: not reset find_funcs table when deinit tdm_thread_cb_call can be called after tdm_thread deinited. Change-Id: Ic58fd0a1c194e1f977f7b9c3b26017bbfed0a57a --- diff --git a/src/tdm_thread.c b/src/tdm_thread.c index 2ca90a0..6ca28f2 100644 --- a/src/tdm_thread.c +++ b/src/tdm_thread.c @@ -291,15 +291,11 @@ tdm_thread_deinit(tdm_private_loop *private_loop) tdm_private_display *private_display; tdm_private_thread_cb *cb = NULL, *hh = NULL; tdm_error ret; - int i; TDM_RETURN_IF_FAIL(TDM_MUTEX_IS_LOCKED()); - if (!private_loop->private_thread) { - for (i = 0; i < TDM_THREAD_CB_MAX; i++) - find_funcs[i] = NULL; + if (!private_loop->private_thread) return; - } ret = _tdm_thread_exit(private_loop); if (ret != TDM_ERROR_NONE) @@ -344,9 +340,6 @@ tdm_thread_deinit(tdm_private_loop *private_loop) private_loop->private_thread = NULL; keep_private_thread = NULL; - for (i = 0; i < TDM_THREAD_CB_MAX; i++) - find_funcs[i] = NULL; - TDM_INFO("Finish a TDM event thread"); }