From 30dd00df4bea2e708caf1afba8e3c575fa758322 Mon Sep 17 00:00:00 2001 From: Ernestas Kulik Date: Thu, 21 Jul 2016 11:40:05 +0300 Subject: query-editor: unref file in update_information_label() window-slot binds with query-editor via a property, which results in nautilus_query_editor_set_location() being called on construction and location changes. That function in turn calls update_information_label(), which takes a ref on the file, but does not release it. This can result in a crash with remote bookmarks when connecting/disconnecting or switching back and forth. This commit fixes that by adding an unref to update_information_label(). https://bugzilla.gnome.org/show_bug.cgi?id=768987 --- src/nautilus-query-editor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c index 4e69fe975..db836db53 100644 --- a/src/nautilus-query-editor.c +++ b/src/nautilus-query-editor.c @@ -134,6 +134,7 @@ update_information_label (NautilusQueryEditor *editor) gtk_label_set_label (GTK_LABEL (priv->label), label); g_free (uri); + nautilus_file_unref (file); } } -- cgit v1.2.1