https://bugs.documentfoundation.org/show_bug.cgi?id=106746

Aron Budea <ba...@caesar.elte.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|medium                      |high
             Blocks|                            |83946
           Severity|minor                       |normal

--- Comment #13 from Aron Budea <ba...@caesar.elte.hu> ---
The problem is with the following piece of change:
https://cgit.freedesktop.org/libreoffice/core/diff/sw/source/core/doc/DocumentContentOperationsManager.cxx?id=db17d3c17c40d6b0e92392cf3c6e343d1d17b771

The pointer in pDelPam actually needs to be preserved here:
pDelPam.reset(new SwPaM( *pCpyStt, pDelPam.get() ));

The following change fixes the behavior by releasing the smart pointer:
pDelPam.reset(new SwPaM( *pCpyStt, pDelPam.release() ));

Is the code otherwise correct? I'm surprised working with an invalid pointer
didn't cause a serious issue.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=83946
[Bug 83946] [META] Tracking changes issues
-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to