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);