From 60fa46e2dc2ca9d17b5ba227110db7c8cd5be106 Mon Sep 17 00:00:00 2001 From: F_Chao Fengchao <834317452@qq.com> Date: Fri, 24 May 2024 15:25:28 +0800 Subject: [PATCH] Fix potential memory issues. --- containments/homescreens/folio/dragstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containments/homescreens/folio/dragstate.cpp b/containments/homescreens/folio/dragstate.cpp index 37c78dad..98f8ee7b 100644 --- a/containments/homescreens/folio/dragstate.cpp +++ b/containments/homescreens/folio/dragstate.cpp @@ -776,7 +776,7 @@ bool DragState::createDropPositionDelegate() int column = m_candidateDropPosition->pageColumn(); // delegate to add - FolioPageDelegate *delegate = new FolioPageDelegate{row, column, m_dropDelegate, page}; + FolioPageDelegate *delegate = new FolioPageDelegate{row, column, m_dropDelegate, PageListModel::self()}; // delegate that exists at the drop position FolioPageDelegate *existingDelegate = page->getDelegate(row, column);