summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-09-04 10:27:52 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-09-04 10:27:52 (GMT)
commit67822312d2fe799c9e52edacd5954f039509b522 (patch)
tree3a2819ce3a995627dff24c3839d3a71bcd775c45
parent0402de6c194ca45b79077df5d8961b8f54202394 (diff)
downloaddata-provider-master-67822312d2fe799c9e52edacd5954f039509b522.zip
data-provider-master-67822312d2fe799c9e52edacd5954f039509b522.tar.gz
data-provider-master-67822312d2fe799c9e52edacd5954f039509b522.tar.bz2
Send INSTANCE_DESTROY_PKGMGR only if it should be recreated
Change-Id: Ic7cca5fe3fc463c76c629ce56cb18eda1af2e534
-rw-r--r--src/package.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}