From: Priya Kohli Date: Thu, 7 Nov 2019 10:04:41 +0000 (+0530) Subject: [ITC][notification][Non-ACR][Update Set Multi language content API] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F217199%2F2;p=test%2Ftct%2Fnative%2Fapi.git [ITC][notification][Non-ACR][Update Set Multi language content API] Change-Id: Ice91ed4ccd6284c3c29325cb50d0db85cb7d98cd Signed-off-by: Priya Kohli --- diff --git a/src/itc/notification/ITs-notification-ex.c b/src/itc/notification/ITs-notification-ex.c index 4024ad252..a1d82d525 100755 --- a/src/itc/notification/ITs-notification-ex.c +++ b/src/itc/notification/ITs-notification-ex.c @@ -6499,24 +6499,23 @@ int ITc_noti_ex_item_input_selector_set_multi_language_contents_p(void) nRet = noti_ex_item_input_selector_set_multi_language_contents(hItemInputSel, hMultiLangARR, nLoopSize); PRINT_RESULT_CLEANUP(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_input_selector_set_multi_language_contents", NotificationExGetError(nRet), noti_ex_item_destroy(hItemInputSel); FREE_MEMORY(hMultiLangARR)); - for (nLoopCounter = 0; nLoopCounter < nCnt; nLoopCounter++) - { - nRet = noti_ex_multi_lang_destroy(hMultiLangARR[nLoopCounter]); - PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_multi_lang_destroy", NotificationExGetError(nRet)); - FREE_MEMORY(hMultiLangARR[nLoopCounter]); - } - FREE_MEMORY(hMultiLangARR); - nRet = noti_ex_item_input_selector_get_contents(hItemInputSel, &hOutMultiLangARR, &nCnt); PRINT_RESULT_CLEANUP(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_input_selector_get_contents", NotificationExGetError(nRet), noti_ex_item_destroy(hItemInputSel)); PRINT_RESULT_CLEANUP(3, nCnt, "noti_ex_item_input_selector_get_contents", "Return count is not same as set count", noti_ex_item_destroy(hItemInputSel); FREE_MEMORY(hOutMultiLangARR)); - for (int nLoopCounter = 0; nLoopCounter < nCnt; nLoopCounter++) + for (nLoopCounter = 0; nLoopCounter < nLoopSize; nLoopCounter++) { snprintf(ARRBuf, sizeof(ARRBuf), "test string(test) integer(%d) float(0.77)", nLoopCounter); PRINT_RESULT_CLEANUP(0, strcmp(hOutMultiLangARR[nLoopCounter], ARRBuf), "noti_ex_multi_lang_create", NotificationExGetError(nRet), noti_ex_item_destroy(hItemInputSel); FREE_MEMORY(hOutMultiLangARR)); } + for (nLoopCounter = 0; nLoopCounter < nLoopSize; nLoopCounter++) + { + nRet = noti_ex_multi_lang_destroy(hMultiLangARR[nLoopCounter]); + PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_multi_lang_destroy", NotificationExGetError(nRet)); + FREE_MEMORY(hOutMultiLangARR[nLoopCounter]); + } + FREE_MEMORY(hOutMultiLangARR); nRet = noti_ex_item_destroy(hItemInputSel);