#include <wgt_manifest_handlers/w3c_pc_utils.h>
#include <pkgmgr/pkgmgr_parser.h>
+#include <pkgmgrinfo_basic.h>
#include <string.h>
icon_x* app_icon = reinterpret_cast<icon_x*>(calloc(1, sizeof(icon_x)));
if (!app_icon) {
LOG(ERROR) << "Out of memory";
+ pkgmgrinfo_basic_free_application(application);
return false;
}
app_icon->text = strdup(icon->text);
icon_x* icon = reinterpret_cast<icon_x*>(calloc(1, sizeof(icon_x)));
if (!icon) {
LOG(ERROR) << "Out of memory";
+ pkgmgrinfo_basic_free_application(application);
return false;
}
icon->text = strdup(icon_path.c_str());
icon_x* icon = reinterpret_cast<icon_x*>(calloc(1, sizeof(icon_x)));
if (!icon) {
LOG(ERROR) << "Out of memory";
+ pkgmgrinfo_basic_free_application(application);
return false;
}
icon->text = strdup(app_widget.icon_src.c_str());