router: fix use-after-free crash in drag walkaround mode
This commit is contained in:
parent
f950354f99
commit
15db42d9c8
|
@ -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