aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYevgeny Hong <yev@drimaes.com>2020-11-05 11:56:45 +0000
committerYevgeny Hong <yev@drimaes.com>2020-11-05 12:20:13 +0000
commita06ae44353446b2684a4a43f4332ad93a43feadb (patch)
tree28cbe488595828559661308b0ff7670edc7c1542
parente5c9cb71a537b92096f2f05058522b811f735838 (diff)
Fix pushAppListChangedEvent json-c object reference count errorkoi_10.93.0koi_10.92.0koi_10.91.0koi/10.93.0koi/10.92.0koi/10.91.010.93.010.92.010.91.0
The agl-service-homescreen has been shut down due to an error in this part when installing or uninstalling the application. Bug-AGL: SPEC-3679 Signed-off-by: Yevgeny Hong <yev@drimaes.com> Change-Id: I276d57ade7db96dd2a3aaa59d54a1d259c17bef7
-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 {