diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-08-08 12:08:42 +0100 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-08-08 12:08:42 +0100 |
commit | 6092163f55ccf72484d0d6d5f302421c234ce17c (patch) | |
tree | 2269c259b15cca5ba866fd4113d7dba583143918 | |
parent | c0b903977f1df82a7087d0a3e9c4af50ef291116 (diff) | |
download | nautilus-6092163f55ccf72484d0d6d5f302421c234ce17c.tar.gz |
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
-rw-r--r-- | src/nautilus-list-view.c | 4 |
1 files 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); } |