[Libreoffice-commits] core.git: extensions/source
Julien Nabet
serval2412 at yahoo.fr
Tue Mar 12 14:21:19 PDT 2013
extensions/source/abpilot/datasourcehandling.cxx | 4 ++++
extensions/source/abpilot/datasourcehandling.hxx | 1 +
2 files changed, 5 insertions(+)
New commits:
commit 634baa8702df8050bba5b6f3dcff64047b328cfe
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Mar 12 19:53:39 2013 +0100
coverity#704143: Resource leak in object
Change-Id: I6bf9fc6e65de857d4d05df0c7be64dc6ec38dc07
Reviewed-on: https://gerrit.libreoffice.org/2686
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx
index 16bb8e3..ca82fb9 100644
--- a/extensions/source/abpilot/datasourcehandling.cxx
+++ b/extensions/source/abpilot/datasourcehandling.cxx
@@ -209,6 +209,10 @@ namespace abp
OSL_FAIL( "ODataSourceContext::ODataSourceContext: caught an exception!" );
}
}
+ ODataSourceContext::~ODataSourceContext()
+ {
+ delete(m_pImpl);
+ }
//---------------------------------------------------------------------
::rtl::OUString& ODataSourceContext::disambiguate(::rtl::OUString& _rDataSourceName)
diff --git a/extensions/source/abpilot/datasourcehandling.hxx b/extensions/source/abpilot/datasourcehandling.hxx
index 7804f1b..3a2dab8 100644
--- a/extensions/source/abpilot/datasourcehandling.hxx
+++ b/extensions/source/abpilot/datasourcehandling.hxx
@@ -56,6 +56,7 @@ namespace abp
ODataSourceContext(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
);
+ ~ODataSourceContext();
/// retrieves the names of all data sources
void getDataSourceNames( StringBag& _rNames ) const SAL_THROW (( ));
More information about the Libreoffice-commits
mailing list