Destroy package info handler in ime plugin 10/116010/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 22 Feb 2017 10:07:32 +0000 (19:07 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 22 Feb 2017 23:23:44 +0000 (15:23 -0800)
Change-Id: I352e4c15c974acf2bf418d689e49d3ad8aabec8d

ism/extras/pkgmgr_parser/ime_parser.c

index 8cf1199..f205e20 100644 (file)
@@ -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;