[Packagemanager] Fix lifetime of callback delegate (#503)
authorjeremy-jang <35089715+jeremy-jang@users.noreply.github.com>
Thu, 4 Oct 2018 23:33:32 +0000 (08:33 +0900)
committersemun-lee <35090067+semun-lee@users.noreply.github.com>
Thu, 4 Oct 2018 23:33:32 +0000 (08:33 +0900)
commit1387155a934f9735d74ebc7d15cc143adf5fe91a
tree1021fdac8713eb3ae94898253cc7d90c04cb7a42
parent99127a3b0f1fa56a3363236638f641d1eab860cb
[Packagemanager] Fix lifetime of callback delegate (#503)

The callback delegate which is passed to unmanaged code can be
garbage-collected before invoked. So we need to save delegate
in managed code until invoked.

Change-Id: Ie8671fa816242040e0372fdf5bf102d41eaaa3cd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/Tizen.Applications.PackageManager/Tizen.Applications/Package.cs [changed mode: 0755->0644]
src/Tizen.Applications.PackageManager/Tizen.Applications/PackageManager.cs