From 6092163f55ccf72484d0d6d5f302421c234ce17c Mon Sep 17 00:00:00 2001 From: Alexandru Pandelea Date: Tue, 8 Aug 2017 12:08:42 +0100 Subject: list-view: fix regex unref Unref the regex before the free of the details, as after that the regex is no longer accessible. https://bugzilla.gnome.org/show_bug.cgi?id=785959 --- src/nautilus-list-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c index 431f4eb42..85fcfafbc 100644 --- a/src/nautilus-list-view.c +++ b/src/nautilus-list-view.c @@ -3375,10 +3375,10 @@ nautilus_list_view_finalize (GObject *object) gtk_widget_destroy (list_view->details->column_editor); } - g_free (list_view->details); - g_regex_unref (list_view->details->regex); + g_free (list_view->details); + G_OBJECT_CLASS (nautilus_list_view_parent_class)->finalize (object); } -- cgit v1.2.1