libgdbus: Add a context to handle pending event sources 53/324453/4 accepted/tizen/unified/20250520.080523 accepted/tizen/unified/x/20250520.211444
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:27:11 +0000 (16:27 +0900)
commit71916d448bef629f11dfa2938fd48d4ba1167948
tree135248243f7c2137d780e59051420b857e9655b7
parent631274887670036b03972e126943ff0ac4e360b1
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