From 8c66455df8f6a26c314290f252bedbc19db6b327 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 24 Nov 2021 21:14:18 +0000 Subject: Related: tdf#145842 fix a crash after deleting an entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit delete an entry in remote files dialog and go one level up and crash, ownership of the SvtContentEntry is not with the entry, but belongs to mpImpl->maEntries Change-Id: I4a052ada1fd4f5e8142ac4396877b15ac49149b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125792 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- fpicker/source/office/fileview.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'fpicker') diff --git a/fpicker/source/office/fileview.cxx b/fpicker/source/office/fileview.cxx index a9e5f69329e5..411f20d3d5b5 100644 --- a/fpicker/source/office/fileview.cxx +++ b/fpicker/source/office/fileview.cxx @@ -648,7 +648,6 @@ void ViewTabListBox_Impl::DeleteEntries() { if ( Kill( aURL ) ) { - delete reinterpret_cast(mxTreeView->get_id(rCurEntry).toInt64()); mpParent->EntryRemoved( aURL ); bDeleted = true; } -- cgit