libgdbus: Add a context to handle pending event sources 70/324470/1 accepted/tizen/7.0/unified/20250520.170455
authorUnsung Lee <unsung.lee@samsung.com>
Sun, 18 May 2025 11:52:21 +0000 (20:52 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 19 May 2025 07:39:40 +0000 (16:39 +0900)
commit5e1b7624928e76cd772c5db7b280ea85ba77889e
treec2135716f89a8ea04c1d254f73e154ab8b1ce7bb
parent7a370e8fc80e69aefa1cd0853e0213b3d67cce81
libgdbus: Add a context to handle pending event sources

Add a context in dbus_handle to handle pending an event source after calling g_dbus_connection_close_sync().
This is because, g_dbus_connection_close_sync() adds an idle source to the context.
If this event source is not handled, then connection ref_cnt is not decremented.
It causes that the connection structures and the corresponding threads are left after free.

Change-Id: Ibc5597b26ef264e03fb86aef92d72627c7d2b8d1
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/libgdbus/libgdbus.c