From: Sung-jae Park Date: Wed, 4 Sep 2013 10:27:52 +0000 (+0900) Subject: Send INSTANCE_DESTROY_PKGMGR only if it should be recreated X-Git-Tag: submit/tizen/20131022.035921^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=67822312d2fe799c9e52edacd5954f039509b522;p=platform%2Fframework%2Fweb%2Fdata-provider-master.git Send INSTANCE_DESTROY_PKGMGR only if it should be recreated Change-Id: Ic7cca5fe3fc463c76c629ce56cb18eda1af2e534 --- diff --git a/src/package.c b/src/package.c index cd21aa8..366d806 100644 --- a/src/package.c +++ b/src/package.c @@ -1277,7 +1277,7 @@ static int io_uninstall_cb(const char *pkgid, const char *lbid, int prime, void */ if (info->inst_list) { EINA_LIST_FOREACH_SAFE(info->inst_list, l, n, inst) { - instance_destroy(inst, INSTANCE_DESTROY_PKGMGR); + instance_destroy(inst, INSTANCE_DESTROY_DEFAULT); } } else { package_destroy(info); @@ -1317,7 +1317,7 @@ static inline void reload_package_info(struct pkg_info *info) if (info->lb.size_list & size_type) { instance_reload(inst, INSTANCE_DESTROY_PKGMGR); } else { - instance_destroy(inst, INSTANCE_DESTROY_PKGMGR); + instance_destroy(inst, INSTANCE_DESTROY_DEFAULT); } } }