ICU-96 fixed a leak

X-SVN-Rev: 3233
This commit is contained in:
Vladimir Weinstein 2000-12-14 21:15:29 +00:00
parent e5d40328d1
commit d0946a00da
2 changed files with 12 additions and 1 deletions

View File

@ -287,6 +287,15 @@ CompactIntArray* ucmp32_openAlias(uint16_t *indexArray,
return this_obj;
}
CompactIntArray* ucmp32_openFromData( const uint8_t **source,
UErrorCode *status)
{
CompactIntArray* this_obj = (CompactIntArray*) uprv_malloc(sizeof(CompactIntArray));
ucmp32_initFromData(this_obj, source, status);
this_obj->fIAmOwned = FALSE;
return this_obj;
}
/*=======================================================*/
CompactIntArray* ucmp32_initAdopt(CompactIntArray* this_obj,

View File

@ -77,7 +77,7 @@
* @see CompactIntArray
* @see CompactCharArray
* @see CompactStringArray
* @version $Revision: 1.15 $ 8/25/98
* @version $Revision: 1.16 $ 8/25/98
* @author Helena Shih
*/
/*====================================
@ -267,6 +267,8 @@ U_CAPI void U_EXPORT2 ucmp32_streamMemIn( CompactIntArray* array, UMemoryStream*
U_CAPI void U_EXPORT2 ucmp32_streamMemOut(CompactIntArray* array, UMemoryStream* os);
U_CAPI uint32_t U_EXPORT2 ucmp32_flattenMem(const CompactIntArray* array, UMemoryStream *MS);
U_CAPI CompactIntArray* U_EXPORT2 ucmp32_openFromData( const uint8_t **source, UErrorCode *status);
U_CAPI void U_EXPORT2 ucmp32_initFromData(CompactIntArray *this_obj, const uint8_t **source, UErrorCode *status);
#endif