i18n_uenumeration_h uenum = NULL;
//Target API
- nRet = i18n_unumsys_get_available_names(&uenum);
+ nRet = i18n_unumsys_get_available_names(&uenum);
CHECK_HANDLE(uenum, "i18n_unumsys_get_available_names");
PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_unumsys_get_available_names", BaseUtilsGetError(nRet), i18n_uenumeration_destroy(uenum));
i18n_uenumeration_destroy(uenum);
- return 0;
+ return 0;
}
/*
* @testcase ITc_i18n_unumsys_get_name_p
PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_unumsys_create", BaseUtilsGetError(nRet), i18n_unumsys_destroy(unumsys));
//Target API
nRet = i18n_unumsys_get_name(unumsys, &pszNumsys);
- PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_unumsys_get_name", BaseUtilsGetError(nRet), i18n_unumsys_destroy(unumsys));
- i18n_unumsys_destroy(unumsys);
+ PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_unumsys_get_name", BaseUtilsGetError(nRet), i18n_unumsys_destroy(unumsys));
CHECK_HANDLE(pszNumsys, "i18n_unumsys_get_name");
if(strncmp(pszNumsys, "latn", strlen("latn")) != 0)
{
FPRINTF("[Line : %d][%s] error returned = returned string is not correct\\n", __LINE__, API_NAMESPACE);
+ i18n_unumsys_destroy(unumsys);
return 1;
}
+ i18n_unumsys_destroy(unumsys);
return 0;
}
/*