← Back to team overview

kicad-developers team mailing list archive

MacOSX - wx2.9 eeschema crash on exit

 

Happens due event processing after the class destruction.

Index: schframe.cpp
===================================================================
--- schframe.cpp	(revision 1809)
+++ schframe.cpp	(working copy)
@@ -428,11 +460,15 @@
 
void WinEDA_SchematicFrame::OnUpdateSchematicUndo( wxUpdateUIEvent& event )
{
+	if (GetScreen() == NULL)
+	return;
event.Enable( (GetScreen()->m_UndoList) ? true : false );
}
 
void WinEDA_SchematicFrame::OnUpdateSchematicRedo( wxUpdateUIEvent& event )
{
+	if (GetScreen() == NULL)
+	return;	
event.Enable( (GetScreen()->m_RedoList) ? true : false );
}