[Libreoffice-commits] core.git: i18npool/source

Stephan Bergmann sbergman at redhat.com
Mon May 26 07:18:43 PDT 2014


 i18npool/source/localedata/saxparser.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3381dfec2c7e601ecd3d71725ecba184bd5b7cae
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon May 26 16:18:10 2014 +0200

    Dispose component context when done
    
    Change-Id: Ic691d1a7136bdb02d3c94fee246920697503d5b0

diff --git a/i18npool/source/localedata/saxparser.cxx b/i18npool/source/localedata/saxparser.cxx
index d3647aa..c50c560 100644
--- a/i18npool/source/localedata/saxparser.cxx
+++ b/i18npool/source/localedata/saxparser.cxx
@@ -354,7 +354,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
         rParser->parseStream( source );
 
         nError = pDocHandler->nError;
-
+        css::uno::Reference<css::lang::XComponent>(
+            xContext, css::uno::UNO_QUERY_THROW)->dispose();
         return nError;
     } catch (css::uno::Exception & e) {
         std::cerr << "ERROR: " << e.Message << '\n';


More information about the Libreoffice-commits mailing list