diff options
author | dldld <LibreOfficeContribution@dldld.de> | 2022-10-17 17:52:01 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-10-25 13:32:48 +0200 |
commit | e5aa82b259e35e3976734af38fff643ea28767df (patch) | |
tree | 4ef5af10d8097ae63067bab0739bd80c15cf3dbe | |
parent | 0d2606e30abf3d335abc349165b016077a0c0793 (diff) |
tdf#151608: Fix crash in disposing remotecontrol listener
Clearing the listener twice seems to be the problem here, because the WeakComponentImplHelperBase::dispose() tries to access the cleared listener when it was already cleared, causing the crash.
The problem which is fixed by this commit appears when the Impress Remote App is closed, which is connected to a running presentation. So closing the app "kills" the presentation. I think I have seen this also happening, when the connection was closed due to bad wifi. Which also makes sense as the communication thread is getting stopped and the listener will be destroyed.
Change-Id: I3c8fa535cfd4d82c846494f76ffb9ce43ebd606a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141468
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | sd/source/ui/remotecontrol/Communicator.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/Communicator.cxx b/sd/source/ui/remotecontrol/Communicator.cxx index b0645e72d430..59509ed3c74b 100644 --- a/sd/source/ui/remotecontrol/Communicator.cxx +++ b/sd/source/ui/remotecontrol/Communicator.cxx @@ -130,7 +130,6 @@ void Communicator::informListenerDestroyed() if ( pTransmitter ) pTransmitter->addMessage( "slideshow_finished\n\n", Transmitter::PRIORITY_HIGH ); - mListener.clear(); } void Communicator::presentationStarted( const css::uno::Reference< |