While calling AddApplication() with calling std::move(), pkginfo-server process
has crashed. 'app->appid' causes the crash issue.
Change-Id: I006516a9553c7a52220afe85d2f80ae10fa24ff0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (ret == PMINFO_R_OK) {
for (auto& app : app_list) {
app->privileges = pkg_map_[app->package].front()->privileges;
- AddApplication(app->appid, std::move(app));
+ std::string appid = app->appid;
+ AddApplication(std::move(appid), std::move(app));
}
}
released_ = false;