Kaydet (Commit) f80de310 authored tarafından akash's avatar akash Kaydeden (comit) Michael Stahl

tdf#96896-Fix infinite recursion to prevent Writer crash

To prevent infinite recursion set m_xOwner to null.
Removed impl_sendTitleChangedEvent from disposing method ensuring that
title is never constructed for a component that is disposing.

Change-Id: I9bc20a9a582d5d911509d2aa30fb0d0122eb588e
Reviewed-on: https://gerrit.libreoffice.org/23509Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst d2f9f277
......@@ -249,13 +249,13 @@ void SAL_CALL TitleHelper::disposing(const css::lang::EventObject& aEvent)
// SYNCHRONIZED ->
aLock.reset ();
m_xOwner = nullptr;
m_sTitle = OUString ();
m_nLeasedNumber = css::frame::UntitledNumbersConst::INVALID_NUMBER;
aLock.clear ();
// <- SYNCHRONIZED
impl_sendTitleChangedEvent ();
}
void TitleHelper::impl_sendTitleChangedEvent ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment