Remove attempts do destroy windows before quit.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 26 Feb 2016 16:39:48 +0000 (17:39 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 26 Feb 2016 16:39:48 +0000 (17:39 +0100)
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.

src/ui/gui/psppire.c

index 1b0031b23f1303cf1ae65079e1ce84c97e40cc12..2096184d39569c613b5a2d2207bc2f978f0249ea 100644 (file)
@@ -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 ();
 }