From c9d52c8894cd3044792c89fdd1685ab4bab081ce Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Tue, 23 Jun 2015 08:42:12 -0400 Subject: [PATCH] Fix segfault when exiting Pcbnew with wxPython scritping enabled. (fixes lp:1431028) --- common/single_top.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/single_top.cpp b/common/single_top.cpp index f564eb234b..dba849d9f8 100644 --- a/common/single_top.cpp +++ b/common/single_top.cpp @@ -143,6 +143,8 @@ struct APP_SINGLE_TOP : public wxApp int OnExit() // overload wxApp virtual { + Pgm().OnPgmExit(); + return wxApp::OnExit(); } @@ -169,8 +171,6 @@ struct APP_SINGLE_TOP : public wxApp wxLogError( wxT( "Unhandled exception of unknown type" ) ); } - Pgm().OnPgmExit(); - return ret; }