<p>COPYRIGHT AND PERMISSION NOTICE</p>
<p>
-Copyright (c) 1995-2009 International Business Machines Corporation and others
+Copyright (c) 1995-2010 International Business Machines Corporation and others
</p>
<p>
All rights reserved.
}
t1 = t2;
} else {
+ if (usingUSRData) {
+ /* the USR override data wasn't found, delete it */
+ uhash_remove(cache, u2);
+ free_entry(u2);
+ }
/* t2->fCountExisting have to be decremented since the call to init_entry increments
* it and if we hit this code, that means it is not set as the parent.
*/
if (U_FAILURE(status)){
return;
}
+ parsedValuesHash->setValueDeleter(uhash_deleteUnicodeString);
int32_t pos = -1;
const UHashElement* elem = NULL;
/*
******************************************************************************
-* Copyright (C) 2001-20109, International Business Machines
+* Copyright (C) 2001-2010, International Business Machines
* Corporation and others. All Rights Reserved.
******************************************************************************
*
/* free offset buffer to avoid memory leak before initializing. */
ucol_freeOffsetBuffer(&(elems->iteratordata_));
+ /* Ensure that previously allocated extendCEs is freed before setting to NULL. */
+ if (elems->iteratordata_.extendCEs != NULL) {
+ uprv_free(elems->iteratordata_.extendCEs);
+ }
uprv_init_collIterate(elems->iteratordata_.coll, text, textLength,
&elems->iteratordata_, status);
}
}
+ delete selFmt;
+ selFmt = NULL;
+
logln("SelectFormat Unit Test : Creating format object for Testing applying various patterns");
status = U_ZERO_ERROR;
selFmt = new SelectFormat( SIMPLE_PATTERN , status);
"*Keyword-_" //Starts with a sepial character not allowed
};
+ delete selFmt;
+ selFmt = NULL;
+
selFmt = new SelectFormat( SIMPLE_PATTERN , status);
for (int32_t i = 0; i< 6; i++ ){
status = U_ZERO_ERROR;
COPYRIGHT AND PERMISSION NOTICE
- Copyright © 1991-2008 Unicode, Inc. All rights reserved. Distributed under
+ Copyright © 1991-2009 Unicode, Inc. All rights reserved. Distributed under
the Terms of Use in http://www.unicode.org/copyright.html.
Permission is hereby granted, free of charge, to any person obtaining a copy