STEP export: fix crash when a rectangle is used in a footprint.

Fixes #6958
https://gitlab.com/kicad/code/kicad/issues/6958
This commit is contained in:
jean-pierre charras 2021-01-07 09:24:30 +01:00
parent fb7ef57d38
commit cdd4953589
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ bool KICADFOOTPRINT::Read( SEXPR::SEXPR* aEntry )
bool KICADFOOTPRINT::parseRect( SEXPR::SEXPR* data )
{
std::unique_ptr<KICADCURVE> rect;
std::unique_ptr<KICADCURVE> rect = std::make_unique<KICADCURVE>();
if( !rect->Read( data, CURVE_LINE ) )
return false;