From 51a4a92ec4d02d0b27dc91d3a6d77b7ec63c974c Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Wed, 31 May 2023 22:20:18 +0200 Subject: [PATCH] router: fix use-after-free crash in drag walkaround mode --- pcbnew/router/pns_dragger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/router/pns_dragger.cpp b/pcbnew/router/pns_dragger.cpp index 2922cbb675..349cc1ce18 100644 --- a/pcbnew/router/pns_dragger.cpp +++ b/pcbnew/router/pns_dragger.cpp @@ -754,6 +754,7 @@ bool DRAGGER::Drag( const VECTOR2I& aP ) if( m_lastNode ) { delete m_lastNode; + m_draggedItems.Clear(); m_lastNode = nullptr; } }