mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-3259 Fix a memory leak.
X-SVN-Rev: 13746
This commit is contained in:
parent
a8a85def75
commit
b56d67be43
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,7 @@ ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UEr
|
|||
if(len < 2){
|
||||
*status = U_INTERNAL_PROGRAM_ERROR;
|
||||
ures_close(bundle);
|
||||
ures_close(paperSizeBundle);
|
||||
return;
|
||||
}else{
|
||||
*height = paperSize[0];
|
||||
|
@ -99,5 +100,6 @@ ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UEr
|
|||
}
|
||||
|
||||
ures_close(bundle);
|
||||
ures_close(paperSizeBundle);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue