gtk3 - added NULL check to tt_test_options_dialog_destroy - psppire crashed during...
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 17 May 2015 14:20:57 +0000 (16:20 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 17 May 2015 16:50:38 +0000 (18:50 +0200)
src/ui/gui/t-test-options.c

index 467d4321ff00a416721cb9cecd17c3b935ff7599..116c543f9476b857726be6e099a7fb511412cbb9 100644 (file)
@@ -92,6 +92,8 @@ tt_options_dialog_create (GtkWindow *parent)
 void
 tt_options_dialog_destroy (struct tt_options_dialog *tto)
 {
+  if (tto == NULL)
+    return;
   gtk_container_remove (GTK_CONTAINER (tto->box), tto->confidence);
   g_object_unref (tto->xml);
   g_free (tto);