From 0f8c47706f7b67e70289af5022a2720fadac5560 Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Sun, 17 May 2015 16:20:57 +0200 Subject: [PATCH] gtk3 - added NULL check to tt_test_options_dialog_destroy - psppire crashed during exit on debian 8 --- src/ui/gui/t-test-options.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/gui/t-test-options.c b/src/ui/gui/t-test-options.c index 467d4321ff..116c543f94 100644 --- a/src/ui/gui/t-test-options.c +++ b/src/ui/gui/t-test-options.c @@ -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); -- 2.30.2