X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/ba6d6ed23dec08b1cd5700a128c0752491c10ac9..51004dcb01e06fef634b61be77ed73dd61cb6db9:/icuSources/tools/genrb/reslist.c diff --git a/icuSources/tools/genrb/reslist.c b/icuSources/tools/genrb/reslist.c index 0f0130a2..829dc22f 100644 --- a/icuSources/tools/genrb/reslist.c +++ b/icuSources/tools/genrb/reslist.c @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2000-2011, International Business Machines +* Copyright (C) 2000-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -27,7 +27,7 @@ #include "uelement.h" #include "uinvchar.h" #include "ustr_imp.h" - +#include "unicode/utf16.h" /* * Align binary data at a 16-byte offset from the start of the resource bundle, * to be safe for any data type it may contain. @@ -1173,6 +1173,10 @@ static void bin_close(struct SResource *binres) { uprv_free(binres->u.fBinaryValue.fData); binres->u.fBinaryValue.fData = NULL; } + if (binres->u.fBinaryValue.fFileName != NULL) { + uprv_free(binres->u.fBinaryValue.fFileName); + binres->u.fBinaryValue.fFileName = NULL; + } } void res_close(struct SResource *res) {