From f153be729ed12ea301642e7d2551ec60b70a2a61 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Thu, 1 Apr 2021 17:07:04 -0400 Subject: 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 --- connectivity/source/cpool/ZConnectionPool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connectivity') diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx index 2917ce019700..cc90fa464e16 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(); } } -- cgit v1.2.3