mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix potential memory issues.
This commit is contained in:
parent
fddf5e9f31
commit
60fa46e2dc
1 changed files with 1 additions and 1 deletions
|
|
@ -776,7 +776,7 @@ bool DragState::createDropPositionDelegate()
|
||||||
int column = m_candidateDropPosition->pageColumn();
|
int column = m_candidateDropPosition->pageColumn();
|
||||||
|
|
||||||
// delegate to add
|
// 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
|
// delegate that exists at the drop position
|
||||||
FolioPageDelegate *existingDelegate = page->getDelegate(row, column);
|
FolioPageDelegate *existingDelegate = page->getDelegate(row, column);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue