Patch from Damon Chaplin to free models when we're finalized, #134053

Fri Mar  5 02:53:41 2004  Jonathan Blandford  <jrb@gnome.org>

        * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
        Patch from Damon Chaplin to free models when we're finalized,
        #134053
This commit is contained in:
Jonathan Blandford 2004-03-05 07:58:36 +00:00 committed by Jonathan Blandford
parent 8a8798bdbc
commit 233b7b8be6
6 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Fri Mar 5 02:53:41 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
Patch from Damon Chaplin to free models when we're finalized,
#134053
2004-03-05 Alexander Larsson <alexl@redhat.com> 2004-03-05 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):

View File

@ -1,3 +1,9 @@
Fri Mar 5 02:53:41 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
Patch from Damon Chaplin to free models when we're finalized,
#134053
2004-03-05 Alexander Larsson <alexl@redhat.com> 2004-03-05 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):

View File

@ -1,3 +1,9 @@
Fri Mar 5 02:53:41 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
Patch from Damon Chaplin to free models when we're finalized,
#134053
2004-03-05 Alexander Larsson <alexl@redhat.com> 2004-03-05 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):

View File

@ -1,3 +1,9 @@
Fri Mar 5 02:53:41 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
Patch from Damon Chaplin to free models when we're finalized,
#134053
2004-03-05 Alexander Larsson <alexl@redhat.com> 2004-03-05 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):

View File

@ -1,3 +1,9 @@
Fri Mar 5 02:53:41 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
Patch from Damon Chaplin to free models when we're finalized,
#134053
2004-03-05 Alexander Larsson <alexl@redhat.com> 2004-03-05 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):

View File

@ -551,6 +551,22 @@ gtk_file_chooser_default_finalize (GObject *object)
if (impl->preview_path) if (impl->preview_path)
gtk_file_path_free (impl->preview_path); gtk_file_path_free (impl->preview_path);
/* Free all the Models we have */
if (impl->browse_files_model)
g_object_unref (impl->browse_files_model);
if (impl->browse_directories_model)
g_object_unref (impl->browse_directories_model);
if (impl->shortcuts_model)
g_object_unref (impl->shortcuts_model);
if (impl->shortcuts_filter_model)
g_object_unref (impl->shortcuts_filter_model);
if (impl->sort_model)
g_object_unref (impl->sort_model);
g_free (impl->preview_display_name); g_free (impl->preview_display_name);
G_OBJECT_CLASS (parent_class)->finalize (object); G_OBJECT_CLASS (parent_class)->finalize (object);