libgdbus: Add a context to handle pending event sources 71/324471/1 accepted/tizen/9.0/unified/20250520.172322
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:40:13 +0000 (16:40 +0900)
commit3b15ca9adc181720d337634c6d9026c2206e807c
tree4280b0d9240928ab1e47b23bacafbbfb6eb4748f
parentcac18ff22e337e551fe42c838aeb89db69e32c75
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