From a474df363538b91def1babc3efa4d064c2866655 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 22 Feb 2017 19:07:32 +0900 Subject: [PATCH] Destroy package info handler in ime plugin Change-Id: I352e4c15c974acf2bf418d689e49d3ad8aabec8d --- ism/extras/pkgmgr_parser/ime_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ism/extras/pkgmgr_parser/ime_parser.c b/ism/extras/pkgmgr_parser/ime_parser.c index 8cf1199..f205e20 100644 --- a/ism/extras/pkgmgr_parser/ime_parser.c +++ b/ism/extras/pkgmgr_parser/ime_parser.c @@ -62,7 +62,7 @@ int PKGMGR_CATEGORY_PARSER_PLUGIN_INSTALL(const char *pkgid, const char *appid, return -1; } - if (ret == PMINFO_R_OK && pkginfo_handle) { + if (pkginfo_handle) { /* pkgtype */ ret = pkgmgrinfo_pkginfo_get_type(pkginfo_handle, &pkgtype); @@ -86,6 +86,7 @@ int PKGMGR_CATEGORY_PARSER_PLUGIN_INSTALL(const char *pkgid, const char *appid, } } + pkgmgrinfo_pkginfo_destroy_pkginfo(pkginfo_handle); pkgmgrinfo_appinfo_destroy_appinfo(appinfo_handle); return 0; -- 2.7.4