if (ret < 0)
{
ELOGF("CONFIGURED_RES", "APP_ID_GET|failed to get appid", NULL);
- return;
+ goto fin;
}
ret = pkgmgrinfo_appinfo_get_appinfo(appid, &appinfo);
if (ret != PMINFO_R_OK || appinfo == NULL)
{
ELOGF("CONFIGURED_RES", "PKG_INFO_GET|failed to get appinfo", NULL);
- return;
+ goto fin;
}
ret = pkgmgrinfo_appinfo_get_metadata_value(appinfo,
if (ret != PMINFO_R_OK || resolution == NULL)
{
ELOGF("CONFIGURED_RES", "MEAT_DATA_GET|failed to get metadata", NULL);
- return;
+ goto fin;
}
ELOGF("CONFIGURED_RES", "screen size(%dx%d), user apptype(%s)", NULL,
if (!epai)
{
ELOGF("CONFIGURED_RES", "APPINFO_GET|fail to find pid.(pid:%d)", NULL, pid);
- return;
+ goto fin;
}
if (!e_appinfo_base_output_resolution_set(epai, width, height))
{
ELOGF("CONFIGURED_RES", "RESOLUTION_SET|fail to set base_output_resolution (pid:%d)", NULL, pid);
- return;
+ goto fin;
}
ELOGF("CONFIGURED_RES", "RESOLUTION_SET|SET base_output_resolution(%d, %d) (pid:%d)", NULL, width, height, pid);
+
+fin:
+ if (appinfo)
+ pkgmgrinfo_appinfo_destroy_appinfo(appinfo);
}
EINTERN void