Fix crash issue 18/245418/5
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 8 Oct 2020 08:48:58 +0000 (17:48 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 13 Oct 2020 03:10:48 +0000 (12:10 +0900)
commitdc48a1f6efc64c24a994c24787e17da53f6d7b8d
tree5f5e3e0d311c7d483c79e286db46d238e27db191
parent6edded5f98ee748010d98fc2267789919bc31482
Fix crash issue

Some library which uses pkgmgr such as voice control loaded by dlopen,
and when the process using this library may crash during exiting.
Because we release our resource using g_idle_add() due to thread-safety,
but the main loop tries to invoke the callback after the library
unloaded.

Change-Id: Ie7cc551d06edbef01dbf3e3d77b8ae03b75dc717
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
client/src/pkgmgr.c