X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/samples/numfmt/util.cpp?ds=sidebyside diff --git a/icuSources/samples/numfmt/util.cpp b/icuSources/samples/numfmt/util.cpp index 43905d11..121e1309 100644 --- a/icuSources/samples/numfmt/util.cpp +++ b/icuSources/samples/numfmt/util.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1999-2003, International Business Machines Corporation and + * Copyright (c) 1999-2003,2009, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -72,7 +72,7 @@ void uprintf(const UnicodeString &str) { } printf("%s", buf); if(buf != stackBuffer) { - delete buf; + delete[] buf; } } @@ -89,6 +89,7 @@ UnicodeString formattableToString(const Formattable& f) { return UnicodeString(buf, ""); } case Formattable::kLong: + case Formattable::kInt64: { char buf[256]; sprintf(buf, "%ldL", f.getLong());