From 7feca807d355556bc24234cd4742d5460f070201 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 18 Aug 2012 12:24:21 -0700 Subject: [PATCH] var-type-dialog: Fix memory leak. --- src/ui/gui/var-type-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/gui/var-type-dialog.c b/src/ui/gui/var-type-dialog.c index 7b66338391..23ad0dce4b 100644 --- a/src/ui/gui/var-type-dialog.c +++ b/src/ui/gui/var-type-dialog.c @@ -211,6 +211,8 @@ psppire_var_type_dialog_run (GtkWindow *parent_window, if (psppire_dialog_run (PSPPIRE_DIALOG (dialog)) == GTK_RESPONSE_OK) *format = *psppire_var_type_dialog_get_format (dialog); + + gtk_widget_destroy (GTK_WIDGET (dialog)); } -- 2.30.2