From: Ben Pfaff Date: Sat, 18 Aug 2012 19:24:21 +0000 (-0700) Subject: var-type-dialog: Fix memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7feca807d355556bc24234cd4742d5460f070201;p=pspp var-type-dialog: Fix memory leak. --- 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)); }