diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-27 08:26:13 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-27 13:42:03 +0200 |
commit | df3622b295d5351063d0ce4d40358231048e8c9a (patch) | |
tree | a7791444b6358a670692877dfadb2966a9c0dc4d | |
parent | df9f3fc694f249a242320435386972688f7755a8 (diff) | |
download | gtk+-df3622b295d5351063d0ce4d40358231048e8c9a.tar.gz |
filechooser: Plug a memory leak
We own references to the columns. Drop them.
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 510f663a02..f529f3b970 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -587,6 +587,12 @@ gtk_file_chooser_widget_finalize (GObject *object) g_clear_object (&impl->sort_model); g_clear_object (&impl->filter_model); + g_clear_object (&impl->column_view_name_column); + g_clear_object (&impl->column_view_location_column); + g_clear_object (&impl->column_view_size_column); + g_clear_object (&impl->column_view_time_column); + g_clear_object (&impl->column_view_type_column); + /* stopping the load above should have cleared this */ g_assert (impl->load_timeout_id == 0); |