]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/datefmt/util.cpp
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / samples / datefmt / util.cpp
index 25a8f0224d433babab52ba3648162c0eb7bb8e18..9d122dba039791df3b5b6b34dde699ffb393bd79 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT:
- * Copyright (c) 1999-2002, International Business Machines Corporation and
+ * Copyright (c) 1999-2002,2009, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 
@@ -59,5 +59,5 @@ void uprintf(const UnicodeString &str) {
     actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
     buf[actualLen] = 0;
     printf("%s", buf);
-    delete buf;
+    delete[] buf;
 }