Change-Id: Ida5d909ff6e883aec2d314c5074e96d59633921e
app_context_h context = NULL;
if (app_manager_get_app_context(item->app_id, &context) == APP_MANAGER_ERROR_NONE &&
app_manager_resume_app(context) == APP_MANAGER_ERROR_NONE) {
- if (context) app_context_destroy(context);
+ app_context_destroy(context);
goto __ret;
}
LOGE("[FAILED][app_manager_resume_app]");
- app_context_destroy(context);
+ if (context) app_context_destroy(context);
}
}