[Libreoffice-commits] core.git: 2 commits - connectivity/source

Stephan Bergmann sbergman at redhat.com
Fri May 30 07:17:57 PDT 2014


 connectivity/source/drivers/mork/MConnection.cxx |    1 +
 connectivity/source/drivers/mork/MStatement.cxx  |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 317306710d8f7c16bd6b9edc1e0af7e0e757cbac
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri May 30 16:16:19 2014 +0200

    Fix memory leak
    
    Change-Id: I64a74ea23d9a2410ebff0c42c54601fd0b0190f0

diff --git a/connectivity/source/drivers/mork/MStatement.cxx b/connectivity/source/drivers/mork/MStatement.cxx
index 20a3011..98cccab 100644
--- a/connectivity/source/drivers/mork/MStatement.cxx
+++ b/connectivity/source/drivers/mork/MStatement.cxx
@@ -106,6 +106,7 @@ void OCommonStatement::disposing()
     m_pConnection = NULL;
 
     m_pSQLIterator->dispose();
+    delete m_pParseTree;
 
     dispose_ChildImpl();
     OCommonStatement_IBASE::disposing();
commit 773881d49e44ba3aa7bc3f4492ea4fa2fe1031d8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri May 30 16:16:02 2014 +0200

    Fix memory leak
    
    Change-Id: I30ab0dcf47d236c8ebda3a2d1da0aaa4f0cd7477

diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx
index 776249c..e84d55f 100644
--- a/connectivity/source/drivers/mork/MConnection.cxx
+++ b/connectivity/source/drivers/mork/MConnection.cxx
@@ -354,6 +354,7 @@ void OConnection::disposing()
     // we noticed that we should be destroied in near future so we have to dispose our statements
     ::osl::MutexGuard aGuard(m_aMutex);
     dispose_ChildImpl();
+    m_xCatalog.clear();
 }
 
 


More information about the Libreoffice-commits mailing list