From 2c52355d1be421646ed149afdb0db265c242315e Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Mon, 17 Sep 2012 17:53:25 +0000 Subject: [PATCH] ICU-9581 Fix some memory leaks in the intltest test code X-SVN-Rev: 32393 --- icu4c/source/test/intltest/listformattertest.cpp | 2 ++ icu4c/source/test/intltest/rbbitst.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/icu4c/source/test/intltest/listformattertest.cpp b/icu4c/source/test/intltest/listformattertest.cpp index 4f60f8d450a..80552fd6f08 100644 --- a/icu4c/source/test/intltest/listformattertest.cpp +++ b/icu4c/source/test/intltest/listformattertest.cpp @@ -53,6 +53,8 @@ void ListFormatterTest::CheckFourCases(const char* locale_string, UnicodeString UnicodeString input4[] = {one, two, three, four}; CheckFormatting(formatter, input4, 4, results[3]); + + delete formatter; } diff --git a/icu4c/source/test/intltest/rbbitst.cpp b/icu4c/source/test/intltest/rbbitst.cpp index 4011d271dbb..4f8961cf102 100644 --- a/icu4c/source/test/intltest/rbbitst.cpp +++ b/icu4c/source/test/intltest/rbbitst.cpp @@ -2287,6 +2287,7 @@ RBBIWordMonkey::~RBBIWordMonkey() { delete fExtendSet; delete fExtendNumLetSet; delete fRegionalIndicatorSet; + delete fDictionaryCjkSet; delete fOtherSet; }