[ITC][notification][NON-ACR][TFDF-4906 Assan issue in notification module] 23/213823/2
authormanoj <manoj.g2@samsung.com>
Thu, 12 Sep 2019 11:08:09 +0000 (16:38 +0530)
committershobhit verma <shobhit.v@samsung.com>
Fri, 13 Sep 2019 02:13:20 +0000 (02:13 +0000)
Change-Id: I6e07d8484038fcd4d8871e457632eed7cbc0403b
Signed-off-by: manoj <manoj.g2@samsung.com>
src/itc/notification/ITs-notification-ex.c

index 2a4e79a20b8b8483e01ddea7acc8446b6a1bd54a..af51f45f512d43d5ec95d7b55aa1f4767bd037cf 100644 (file)
@@ -2550,15 +2550,18 @@ int ITc_noti_ex_item_set_get_led_info_p(void)
        PRINT_RESULT_CLEANUP(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_get_led_info", NotificationExGetError(nRet), noti_ex_color_destroy(hColor); noti_ex_led_info_destroy(hSetLedInfo); noti_ex_item_destroy(g_hItemButton));
        CHECK_HANDLE_CLEANUP(hGetLedInfo, "noti_ex_item_get_led_info", noti_ex_color_destroy(hColor); noti_ex_led_info_destroy(hSetLedInfo); noti_ex_item_destroy(g_hItemButton));
 
-       nRet = noti_ex_color_destroy(hColor);
-       PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_color_destroy", NotificationExGetError(nRet));
-
-       nRet = noti_ex_led_info_destroy(hSetLedInfo);
+       nRet = noti_ex_led_info_destroy(hGetLedInfo);
        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_led_info_destroy", NotificationExGetError(nRet));
 
        nRet = noti_ex_item_destroy(g_hItemButton);
        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_destroy", NotificationExGetError(nRet));
 
+       nRet = noti_ex_led_info_destroy(hSetLedInfo);
+       PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_led_info_destroy", NotificationExGetError(nRet));
+
+       nRet = noti_ex_color_destroy(hColor);
+       PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_color_destroy", NotificationExGetError(nRet));
+
        return 0;
 }