summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2021-04-01 17:07:04 -0400
committerHenry Castro <hcastro@collabora.com>2021-04-12 22:53:47 +0200
commit47eaa8cf7d0f64c0deb3b0fa2e9f81ce83bb8b86 (patch)
treeb164ae3b7fde48910a74d206700f97fcf3aacf63 /connectivity
parent6bf034f349c9d8d139dddcc18c88209b7be2cb42 (diff)
lok: remove event listener when disposing
In order to prevent that the event listener holds the object reference count when removed, ensure they are removed when disposing the object. Change-Id: I7cb4cb7d87acfc9610c2498760ade531456fe22e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113493 Tested-by: Jenkins Reviewed-by: Henry Castro <hcastro@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114020 Tested-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/cpool/ZConnectionPool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx
index 7d05b6e0236b..4a56907a0c9c 100644
--- a/connectivity/source/cpool/ZConnectionPool.cxx
+++ b/connectivity/source/cpool/ZConnectionPool.cxx
@@ -189,7 +189,7 @@ void SAL_CALL OConnectionPool::disposing( const css::lang::EventObject& Source )
}
else
{
- m_xDriverNode.clear();
+ m_xDriverNode.clear();
}
}