Fix wrong gsource deletion 26/294526/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 20 Jun 2023 23:49:54 +0000 (23:49 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 20 Jun 2023 23:49:54 +0000 (23:49 +0000)
commitc7545932d4d4b750ae29a578fb9b70824d7da493
treea49369a37f4351c54d325bf54b51bc89a382eff9
parentd737a3f43c9b286e5a35c27ee017ba3549cfd3f8
Fix wrong gsource deletion

While terminating the worker thread, the worker thread tries to remove
the anr timer source. In this time, the g_source_remove() was called.
It makes an error. This patch uses the g_source_destroy() instead of
the g_source_remove(). Before calling the g_source_destroy(), the worker
finds the source using the source id with the GMainContext.

Change-Id: Iee25a57b0b9036d028c0974187f013eb3e99b864
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_worker.c