From: Hwankyu Jhun Date: Tue, 1 Oct 2019 23:05:23 +0000 (+0900) Subject: Fix glib warning messages X-Git-Tag: submit/tizen/20191001.233419~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c35014c05470af8911949673a2261454a5089068;p=platform%2Fcore%2Fappfw%2Faul-1.git Fix glib warning messages Change-Id: I5bc39b4a808aae9eafc4d750ee9bccf061cbe404 Signed-off-by: Hwankyu Jhun --- diff --git a/src/aul_worker.c b/src/aul_worker.c index b0e78d0..33a5e9a 100644 --- a/src/aul_worker.c +++ b/src/aul_worker.c @@ -88,13 +88,17 @@ static struct anr_timer_s *__create_anr_timer(void) static void __destroy_job(gpointer data) { struct job_s *job = (struct job_s *)data; + GSource *source; + + if (job->tag) { + source = g_main_context_find_source_by_id(NULL, job->tag); + if (source && !g_source_is_destroyed(source)) + g_source_remove(job->tag); + } if (job->channel) g_io_channel_unref(job->channel); - if (job->tag) - g_source_remove(job->tag); - free(job->name); free(job); }