router: fix use-after-free crash in drag walkaround mode

This commit is contained in:
Tomasz Wlostowski 2023-05-31 22:20:18 +02:00
parent ae8ea3b938
commit 51a4a92ec4
1 changed files with 1 additions and 0 deletions

View File

@ -754,6 +754,7 @@ bool DRAGGER::Drag( const VECTOR2I& aP )
if( m_lastNode )
{
delete m_lastNode;
m_draggedItems.Clear();
m_lastNode = nullptr;
}
}