[nautilus] list-view: fix regex unref



commit 6092163f55ccf72484d0d6d5f302421c234ce17c
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date:   Tue Aug 8 12:08:42 2017 +0100

    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 431f4eb..85fcfaf 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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]