From b57626807dbbb213e8faa873b47cb4726b59db41 Mon Sep 17 00:00:00 2001 From: John Beard Date: Mon, 8 Jan 2024 23:33:12 +0000 Subject: [PATCH] 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 --- common/single_top.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/single_top.cpp b/common/single_top.cpp index 63c6d19794..b51c52ee40 100644 --- a/common/single_top.cpp +++ b/common/single_top.cpp @@ -351,6 +351,8 @@ bool PGM_SINGLE_TOP::OnPgmInit() if( frame == nullptr ) { + // Clean up + OnPgmExit(); return false; }