Browse Source

Avoid crash when adjusting meander shape

We cannot maintain a pointer to the lc after it goes out of scope
master
Seth Hillbrand 20 hours ago
parent
commit
91290a78a6
  1. 3
      pcbnew/router/pns_meander.cpp

3
pcbnew/router/pns_meander.cpp

@ -633,6 +633,9 @@ SHAPE_LINE_CHAIN MEANDER_SHAPE::genMeanderShape( const VECTOR2D& aP, const VECTO
lc.Mirror( axis );
}
// Clear the current target pointer to avoid dangling pointer after lc goes out of scope
m_currentTarget = nullptr;
return lc;
}

Loading…
Cancel
Save