[Libreoffice-commits] .: i18npool/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 19 07:14:57 PST 2012


 i18npool/qa/cppunit/test_textsearch.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 7228c24e38363ed4684936f69eb49a7905b5a16b
Author: Zolnai Tamás <zolnaitamas2000g at gmail.com>
Date:   Mon Nov 19 15:58:52 2012 +0100

    Stop a memory leak in text_textsearch.cxx
    
    Change-Id: I4dad05dbbe668ac7d7058cb43989f6a9f8e488a6
    Reviewed-on: https://gerrit.libreoffice.org/1118
    Reviewed-by: Luboš Luňák <l.lunak at suse.cz>
    Tested-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/i18npool/qa/cppunit/test_textsearch.cxx b/i18npool/qa/cppunit/test_textsearch.cxx
index 682a607..c26550b 100644
--- a/i18npool/qa/cppunit/test_textsearch.cxx
+++ b/i18npool/qa/cppunit/test_textsearch.cxx
@@ -92,6 +92,7 @@ void TestTextSearch::testICU()
     CPPUNIT_ASSERT( nErr == U_ZERO_ERROR );
     CPPUNIT_ASSERT( pRegexMatcher->end( nErr ) == 1 );
     CPPUNIT_ASSERT( nErr == U_ZERO_ERROR );
+    delete pRegexMatcher;
 }
 
 void TestTextSearch::testSearches()


More information about the Libreoffice-commits mailing list