aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hs-appinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hs-appinfo.cpp b/src/hs-appinfo.cpp
index 9ccd660..b072ee0 100644
--- a/src/hs-appinfo.cpp
+++ b/src/hs-appinfo.cpp
@@ -247,7 +247,7 @@ int HS_AppInfo::updateAppDetailList(afb_api_t api, struct json_object *object)
json_object_put(j_runnable);
return 1;
}
- addAppDetail(j_found);
+ addAppDetail(json_object_get(j_found));
pushAppListChangedEvent(_keyInstall, j_found);
}
else {
@@ -261,7 +261,7 @@ int HS_AppInfo::updateAppDetailList(afb_api_t api, struct json_object *object)
AFB_INFO("uninstalled application isn't in runnables list, appid=%s.", appid.c_str());
return 1;
}
- pushAppListChangedEvent(_keyUninstall, obj_data);
+ pushAppListChangedEvent(_keyUninstall, json_object_get(obj_data));
removeAppDetail(appid);
}
else {