Change-Id: I33f4a07bee4b69195f331952acb699b39e17c9e9
}
}
- CoreRuntime* runtime = new CoreRuntime("standalone");
+ std::unique_ptr<CoreRuntime> runtime(new CoreRuntime("standalone"));
// get app ID and app root path
if (AUL_R_OK == aul_app_get_appid_bypid(getpid(), appId, sizeof(appId))) {
.remove_fd = __adapter_remove_fd
};
- return launchpad_loader_main(argc, argv, &callbacks, &adapter, runtime);
+ int ret = launchpad_loader_main(argc, argv, &callbacks, &adapter, runtime);
+ delete runtime;
+
+ return ret;
}
int main(int argc, char *argv[])