From 45dc3bc5dd3981ce8432eff05641910d609fcb38 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 25 Nov 2003 21:28:23 +0000 Subject: [PATCH] ICU-3259 Fix a memory leak X-SVN-Rev: 13886 --- icu4c/source/test/intltest/rbbitst.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/rbbitst.cpp b/icu4c/source/test/intltest/rbbitst.cpp index 4e0283f352..9b84505775 100644 --- a/icu4c/source/test/intltest/rbbitst.cpp +++ b/icu4c/source/test/intltest/rbbitst.cpp @@ -2493,7 +2493,6 @@ RBBILineMonkey::RBBILineMonkey() fAL = new UnicodeSet("[\\p{Line_break=AL}]", status); fID = new UnicodeSet("[\\p{Line_break=ID}]", status); fSA = new UnicodeSet("[\\p{Line_break=SA}]", status); - fWJ = new UnicodeSet("[\\p{Line_break=WJ}]", status); fXX = new UnicodeSet("[\\p{Line_break=XX}]", status); fAL->addAll(*fXX); // Default behavior for XX is identical to AL @@ -3159,6 +3158,7 @@ void RBBITest::TestWordBreaks(void) testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } + delete bi; } void RBBITest::TestWordBoundary(void) @@ -3234,6 +3234,7 @@ void RBBITest::TestWordBoundary(void) prev = i; } } + delete bi; } void RBBITest::TestLineBreaks(void) @@ -3299,6 +3300,7 @@ void RBBITest::TestLineBreaks(void) testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } + delete bi; } void RBBITest::TestSentBreaks(void) @@ -3334,6 +3336,7 @@ void RBBITest::TestSentBreaks(void) } testBreakBoundPreceding(this, ustr, bi, forward, count); } + delete bi; } void RBBITest::TestMonkey(char *params) {