summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-23 15:03:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-23 21:58:09 +0200
commitebe57117c470a87a6b4201537616bd1379257c02 (patch)
tree59d8b55ff2a7d45c6a8292bf076177fe4a85d71f /dbaccess/source
parent262bfd71808b53f008b8ab3307d62ddc5e2b88a1 (diff)
leaks of OCollection in dbase import
presumably since... commit 5c7b954935369cbbd22a6f43be63ac7c0ddbbfdc Date: Mon Jan 29 13:28:44 2018 +0200 loplugin:useuniqueptr in OTable OCollection has a unique and nonstandard acquire/release which forwards to a parent cppu::OWeakObject. So when it would appear to a casual observer, who assumes that it has an internal refcount, that its refcount would drop to zero and then get auto-deleted, nothing of the kind occurs. Change-Id: Ic292663a61b4d7dbf7636be7ad4c00aed0b5a7fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122528 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/core/api/RowSet.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbaccess/source/core/api/RowSet.hxx b/dbaccess/source/core/api/RowSet.hxx
index 33a1aceaa4c5..6da5fdb2ece1 100644
--- a/dbaccess/source/core/api/RowSet.hxx
+++ b/dbaccess/source/core/api/RowSet.hxx
@@ -100,6 +100,7 @@ namespace dbaccess
::dbtools::WarningsContainer m_aWarnings;
+ // no Reference! see OCollection::acquire
std::unique_ptr<OTableContainer> m_xTables;
OUString m_aCommand;