mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Free the filters. Fixes #133547, patch by Morten Welinder
2004-02-10 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize): Free the filters. Fixes #133547, patch by Morten Welinder <mortenw@gnome.org>.
This commit is contained in:
parent
351ebd8bd2
commit
e27a88458f
@ -1,3 +1,9 @@
|
||||
2004-02-10 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
|
||||
Free the filters. Fixes #133547, patch by Morten Welinder
|
||||
<mortenw@gnome.org>.
|
||||
|
||||
Tue Feb 10 12:02:14 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Avoid
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-02-10 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
|
||||
Free the filters. Fixes #133547, patch by Morten Welinder
|
||||
<mortenw@gnome.org>.
|
||||
|
||||
Tue Feb 10 12:02:14 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Avoid
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-02-10 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
|
||||
Free the filters. Fixes #133547, patch by Morten Welinder
|
||||
<mortenw@gnome.org>.
|
||||
|
||||
Tue Feb 10 12:02:14 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Avoid
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-02-10 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
|
||||
Free the filters. Fixes #133547, patch by Morten Welinder
|
||||
<mortenw@gnome.org>.
|
||||
|
||||
Tue Feb 10 12:02:14 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Avoid
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-02-10 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
|
||||
Free the filters. Fixes #133547, patch by Morten Welinder
|
||||
<mortenw@gnome.org>.
|
||||
|
||||
Tue Feb 10 12:02:14 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Avoid
|
||||
|
@ -369,6 +369,7 @@ static void
|
||||
gtk_file_chooser_default_finalize (GObject *object)
|
||||
{
|
||||
GtkFileChooserDefault *impl = GTK_FILE_CHOOSER_DEFAULT (object);
|
||||
GSList *l;
|
||||
|
||||
g_signal_handler_disconnect (impl->file_system, impl->volumes_changed_id);
|
||||
impl->volumes_changed_id = 0;
|
||||
@ -376,7 +377,17 @@ gtk_file_chooser_default_finalize (GObject *object)
|
||||
impl->bookmarks_changed_id = 0;
|
||||
g_object_unref (impl->file_system);
|
||||
|
||||
/* FIXME: Free impl->filters -- what's the memory management there? */
|
||||
for (l = impl->filters; l; l = l->next)
|
||||
{
|
||||
GtkFileFilter *filter;
|
||||
|
||||
filter = GTK_FILE_FILTER (l->data);
|
||||
g_object_unref (filter);
|
||||
}
|
||||
g_slist_free (impl->filters);
|
||||
|
||||
if (impl->current_filter)
|
||||
g_object_unref (impl->current_filter);
|
||||
|
||||
if (impl->current_volume_path)
|
||||
gtk_file_path_free (impl->current_volume_path);
|
||||
|
Loading…
Reference in New Issue
Block a user