router: fix use-after-free crash in drag walkaround mode
This commit is contained in:
parent
ae8ea3b938
commit
51a4a92ec4
|
@ -754,6 +754,7 @@ bool DRAGGER::Drag( const VECTOR2I& aP )
|
||||||
if( m_lastNode )
|
if( m_lastNode )
|
||||||
{
|
{
|
||||||
delete m_lastNode;
|
delete m_lastNode;
|
||||||
|
m_draggedItems.Clear();
|
||||||
m_lastNode = nullptr;
|
m_lastNode = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue