[ITC][application][NonACR][Fixed double free issue] 89/199489/3
authorNibha Sharma <nibha.sharma@samsung.com>
Tue, 12 Feb 2019 06:18:13 +0000 (11:48 +0530)
committerNibha Sharma <nibha.sharma@samsung.com>
Fri, 15 Feb 2019 09:09:28 +0000 (14:39 +0530)
Change-Id: If45ca18c6bb34defdd54b6b4dcdd9d8e638860b3
Signed-off-by: Nibha Sharma <nibha.sharma@samsung.com>
src/itc/application/ITs-application-app-display.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 829cccf..dd5f931
@@ -63,7 +63,6 @@ void ITs_application_app_get_display_state_startup(void)
        nRet = app_info_get_app_component_type(g_hApp_info, &g_hContext.comp_type);
        if (nRet != APP_MANAGER_ERROR_NONE) {
                FPRINTF("[Line : %d][%s] Failed to get app component type, nRet = %d\\n", __LINE__, API_NAMESPACE, nRet);
-               app_info_destroy(g_hApp_info);
                return;
        }
        g_bAppInfoCreation = true;
@@ -71,7 +70,6 @@ void ITs_application_app_get_display_state_startup(void)
        if(!g_bFeatureApp)
        {
                FPRINTF("[Line : %d][%s] System Feature is not supported\\n", __LINE__, API_NAMESPACE);
-               app_info_destroy(g_hApp_info);
                return;
        }
 }