summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@src.gnome.org>2016-07-21 11:40:05 +0300
committerErnestas Kulik <ernestask@src.gnome.org>2016-07-21 11:49:38 +0300
commit30dd00df4bea2e708caf1afba8e3c575fa758322 (patch)
tree62c76ac214b0a4e00d31a40b3fb80fe12da17a46
parente37f8fe0c2a51193fed8588661ae83b1abff861f (diff)
downloadnautilus-30dd00df4bea2e708caf1afba8e3c575fa758322.tar.gz
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
-rw-r--r--src/nautilus-query-editor.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}