summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-07 09:40:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-07 13:27:54 +0200
commite200d3a51157e81eb66dbfc0961ae94c47b3c6e7 (patch)
treef63454a35ffdcade0294a49da37ab515940483f1 /include
parentlok: comments: fix hidden text cursor and sudden document scroll (diff)
downloadcore-e200d3a51157e81eb66dbfc0961ae94c47b3c6e7.tar.gz
core-e200d3a51157e81eb66dbfc0961ae94c47b3c6e7.zip
tdf#127958 crash adding 2 or more files into writer master document
clean up the memory management here, the SfxMedium wants to own the passed-in SfxItemSet Change-Id: I1bafa520ca7b833c4d2df7593649c3720c46e2ce Reviewed-on: https://gerrit.libreoffice.org/80332 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 8f6f9e4217d03d874fb1ce391730a1c893ab6844) Reviewed-on: https://gerrit.libreoffice.org/80344
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/docinsert.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sfx2/docinsert.hxx b/include/sfx2/docinsert.hxx
index 56c16ac2653b..0148b854fed2 100644
--- a/include/sfx2/docinsert.hxx
+++ b/include/sfx2/docinsert.hxx
@@ -50,7 +50,7 @@ private:
std::unique_ptr<sfx2::FileDialogHelper>
m_pFileDlg;
- SfxItemSet* m_pItemSet;
+ std::unique_ptr<SfxItemSet> m_xItemSet;
std::vector<OUString> m_pURLList;
DECL_LINK(DialogClosedHdl, sfx2::FileDialogHelper*, void);