dbaccess/source/ui/relationdesign/RelationController.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
New commits: commit 6ec0d5f6960cb5e2104e206a3890ad3adf864467 Author: prrvchr <prrv...@gmail.com> AuthorDate: Mon Aug 11 03:41:26 2025 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Aug 11 07:53:47 2025 +0200 tdf#167495 Base need to close ResultSet after using it. Change-Id: I085c6e187f1f1fbe05992c2a856a9b3eba5665b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189330 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx index 7cab45c54d55..c87a6a192284 100644 --- a/dbaccess/source/ui/relationdesign/RelationController.cxx +++ b/dbaccess/source/ui/relationdesign/RelationController.cxx @@ -293,10 +293,13 @@ namespace try { Reference< XResultSet > xResult = m_xMetaData->getImportedKeys(aCatalog, sSchema,sTable); - if ( xResult.is() && xResult->next() ) + if ( xResult.is() ) { - ::comphelper::disposeComponent(xResult); - loadTableData(m_xTables->getByName(m_aTableList[i])); + if ( xResult->next() ) + loadTableData(m_xTables->getByName(m_aTableList[i])); + Reference<XCloseable> xCloseable(xResult,UNO_QUERY); + if (xCloseable.is()) + xCloseable->close(); } } catch( const Exception& )