fpicker/source/office/fileview.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 8c66455df8f6a26c314290f252bedbc19db6b327
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Nov 24 21:14:18 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Nov 25 10:34:53 2021 +0100

    Related: tdf#145842 fix a crash after deleting an entry
    
    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 <caol...@redhat.com>

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<SvtContentEntry*>(mxTreeView->get_id(rCurEntry).toInt64());
                 mpParent->EntryRemoved( aURL );
                 bDeleted = true;
             }

Reply via email to