ICU-3259 Fix a memory leak.

X-SVN-Rev: 13746
This commit is contained in:
George Rhoten 2003-11-18 23:27:49 +00:00
parent a8a85def75
commit b56d67be43

View file

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