[ITC][notification][NonACR][TFDF-1814, TFDF-1815, TFDF-1816, TFDF-1817, TFDF-1818... 54/205254/2
authorManu Tiwari <manu.tiwari@samsung.com>
Wed, 1 May 2019 12:51:56 +0000 (18:21 +0530)
committershobhit verma <shobhit.v@samsung.com>
Thu, 2 May 2019 10:13:57 +0000 (10:13 +0000)
Change-Id: I74a79276e50cbbd0b82dcddb8067dd146a25c788
Signed-off-by: Manu Tiwari <manu.tiwari@samsung.com>
src/itc/notification/ITs-notification.c

index ac9939a518f81dec2ae147f9f0fa647554fc0fc1..af9fe7fde788bad4afab23b405db03ae9b9abbd9 100755 (executable)
@@ -230,11 +230,9 @@ int ITc_notification_free_p(void)
                        FPRINTF("[Line : %d][%s] notification_create failed for notification_type_e enum value = %d, returns null handle vale\\n", __LINE__, API_NAMESPACE, noti_type[enum_counter]);
                        return 1;
                }
-
-               eRetNotiErr = notification_free(g_NotificationHandle);
-               PRINT_RESULT_CLEANUP(NOTIFICATION_ERROR_NONE, eRetNotiErr, "notification_free", NotificationGetError(eRetNotiErr), notification_delete(g_NotificationHandle););
-
                notification_delete(g_NotificationHandle);
+               eRetNotiErr = notification_free(g_NotificationHandle);
+               PRINT_RESULT_CLEANUP(NOTIFICATION_ERROR_NONE, eRetNotiErr, "notification_free", NotificationGetError(eRetNotiErr), FREE_MEMORY(g_NotificationHandle));
        }
        return 0;
 }