summaryrefslogtreecommitdiff
path: root/include/connectivity/sdbcx/VUser.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-05-29 13:18:37 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2019-05-31 10:19:21 +0200
commit6bd751f9f577f25b058fb8a5479c0de7552c3ffc (patch)
tree56599da4cd740d638cc17c1aeb7a134a96a2b47a /include/connectivity/sdbcx/VUser.hxx
parent36cee080555c759443896cb3b34c3f710f33e0f0 (diff)
connectivity: fix memory leaks caused by OConnection::acquire()
Followup to 58f121ef2e680697e10453add43bab9b771d153a; OConnection must not be held by rtl::Reference as that creates a cycle. (regression from 497e40ad03c27837978551ba15491c3fb2a0bf53) Change-Id: Ibd56d335e3e2631c5a57ea435f1035e89868a5a6 Reviewed-on: https://gerrit.libreoffice.org/73155 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'include/connectivity/sdbcx/VUser.hxx')
-rw-r--r--include/connectivity/sdbcx/VUser.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/connectivity/sdbcx/VUser.hxx b/include/connectivity/sdbcx/VUser.hxx
index ef488b074ac7..a407a063f0d7 100644
--- a/include/connectivity/sdbcx/VUser.hxx
+++ b/include/connectivity/sdbcx/VUser.hxx
@@ -51,7 +51,8 @@ namespace connectivity
public ODescriptor
{
protected:
- rtl::Reference<OGroups> m_pGroups;
+ // no Reference! see OCollection::acquire
+ std::unique_ptr<OGroups> m_pGroups;
using OUser_BASE::rBHelper;