[Libreoffice-commits] core.git: sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 26 10:29:44 UTC 2021
sc/source/ui/miscdlgs/acredlin.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit d86889978d7caa4ac82eb4ede226c7f2561c8607
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed May 26 09:28:54 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed May 26 12:29:01 2021 +0200
fix leak in ScAcceptChgDlg
Change-Id: I51636d04389c8493377fe906314ef5d8f5c372d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116140
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index f07c7e01a57d..c6137a42d1cd 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -278,6 +278,13 @@ void ScAcceptChgDlg::ClearView()
nAcceptCount=0;
nRejectCount=0;
weld::TreeView& rTreeView = pTheView->GetWidget();
+ rTreeView.selected_foreach(
+ [&rTreeView](weld::TreeIter& rEntry)
+ {
+ ScRedlinData *pEntryData = reinterpret_cast<ScRedlinData*>(rTreeView.get_id(rEntry).toInt64());
+ delete pEntryData;
+ return false;
+ });
rTreeView.freeze();
rTreeView.clear();
rTreeView.thaw();
More information about the Libreoffice-commits
mailing list