Fix crash when cancelling fp table setup

The missing OnPgmExit leads to a segfault later if you
cancel the FP table setup when initialising a new config.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16525
This commit is contained in:
John Beard 2024-01-08 23:33:12 +00:00
parent 047cb41a1d
commit b57626807d
1 changed files with 2 additions and 0 deletions

View File

@ -351,6 +351,8 @@ bool PGM_SINGLE_TOP::OnPgmInit()
if( frame == nullptr )
{
// Clean up
OnPgmExit();
return false;
}