diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-21 14:33:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-21 20:28:17 +0200 |
commit | cc614f87afb38a8342dccfe4ad1b1d6ad7d4f955 (patch) | |
tree | d1056afc93c5c790bdcfcb14436fb058fb6ec07b /sw/source/filter | |
parent | dea9c444ab139dd53d44203bbcb88b29c95ceb96 (diff) |
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@collabora.co.uk>
Diffstat (limited to 'sw/source/filter')
-rw-r--r-- | sw/source/filter/html/htmlfly.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |