[Libreoffice-commits] core.git: sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 21 18:29:54 UTC 2021
sw/source/filter/html/htmlfly.hxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit cc614f87afb38a8342dccfe4ad1b1d6ad7d4f955
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri May 21 14:33:56 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri May 21 20:28:17 2021 +0200
fix leak in SwHTMLPosFlyFrame
affects html export
Change-Id: I10b33a27e18eabf36a1a8566c3b90f2f7c760f0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115922
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sw/source/filter/html/htmlfly.hxx b/sw/source/filter/html/htmlfly.hxx
index ce1a43a3a40d..5036509a5ba4 100644
--- a/sw/source/filter/html/htmlfly.hxx
+++ b/sw/source/filter/html/htmlfly.hxx
@@ -23,6 +23,7 @@
#include <o3tl/sorted_vector.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <sal/types.h>
+#include <memory>
class SdrObject;
class SwFrameFormat;
@@ -97,7 +98,7 @@ class SwHTMLPosFlyFrame
{
const SwFrameFormat *pFrameFormat; // the frame
const SdrObject *pSdrObject; // maybe Sdr-Object
- SwNodeIndex *pNdIdx; // Node-Index
+ std::unique_ptr<SwNodeIndex> pNdIdx; // Node-Index
sal_uInt32 nOrdNum; // from SwPosFlyFrame
sal_Int32 nContentIdx; // its position in content
AllHtmlFlags nAllFlags;
More information about the Libreoffice-commits
mailing list