var-type-dialog: Fix memory leak.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Aug 2012 19:24:21 +0000 (12:24 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Aug 2012 19:28:55 +0000 (12:28 -0700)
src/ui/gui/var-type-dialog.c

index 7b663383912c91b4f78ff6caac99b05b2be265da..23ad0dce4b220235d53a4662a602183f14328018 100644 (file)
@@ -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));
 }