Index: build_run.c =================================================================== --- build_run.c (revision 5047) +++ build_run.c (revision 5048) @@ -50,12 +50,12 @@ else pcb_disable_emergency_save(); - if (gui->do_exit == NULL) { + if (pcb_gui->do_exit == NULL) { pcb_main_uninit(); exit(0); } else - gui->do_exit(gui); + pcb_gui->do_exit(pcb_gui); } /* ---------------------------------------------------------------------------