GNOME Bugzilla – Bug 594961
GtkFileChooser (Button) leaks memory and handles on Windows
Last modified: 2014-02-21 19:29:17 UTC
Tor Lillqvist asked me to open a new bug report for this, so here it is. This bug is present on Windows, GTK+ version 2.16.6, when using gtk_file_chooser_button. Every time you click on the button and then close the dialog, it uses more memory and opens more handles. Code: #include <gtk/gtk.h> int main (int argc, char **argv) { GtkWidget *window, *chooser1; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); chooser1 = gtk_file_chooser_button_new ("Open", GTK_FILE_CHOOSER_ACTION_OPEN); gtk_container_add (GTK_CONTAINER (window), chooser1); gtk_widget_show_all (window); gtk_main(); return 0; }
Thanks for reporting this bug. Could you please try to repoduce it with a more recent version of GTK 2.x (and 3.x if you can)?
*** This bug has been marked as a duplicate of bug 554618 ***