fd-handler: Fix a bug caused by wrong context 75/313675/2 accepted/tizen/7.0/unified/20240701.174514
authorUnsung Lee <unsung.lee@samsung.com>
Sun, 30 Jun 2024 11:30:53 +0000 (20:30 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 1 Jul 2024 02:52:51 +0000 (11:52 +0900)
commitb4d11370f92348abb2ea5c0702e062f5d666aff8
treec974e43a732e30b3c740a10a3c69c467a1558b41
parentb408acf320a078d9a450bf458e570aaa27c8b2ef
fd-handler: Fix a bug caused by wrong context

Fix a bug caused by wrong context in the g_source_remove().
g_source_remove() assumes default main context, but some
gsource are attached to the specific context instead of
default main context.
In conclusion, find the gsource from each context first before
freeing source.

Change-Id: I8ec20108750a28ce1c7a4a5d829f0a1842ab4baa
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/common/fd-handler.c