From: John Darrington Date: Fri, 26 Feb 2016 16:39:48 +0000 (+0100) Subject: Remove attempts do destroy windows before quit. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=e7b9afcb94e349a9716b86178b9392d20b35eded Remove attempts do destroy windows before quit. This change deletes an attempt to remove all existing windows from a list (and thereby unreffing and deleting them). The attempt fails, because lists may not be altered whilst iterating them. This resulted only in a Critical Warning. It is also pointless to attempt to destroy windows immediately priot to quit. --- diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 1b0031b23f..2096184d39 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -194,9 +194,6 @@ func (gpointer key, gpointer value, gpointer data) void psppire_quit (void) { - PsppireWindowRegister *reg = psppire_window_register_new (); - psppire_window_register_foreach (reg, func, NULL); - gtk_main_quit (); }