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 12:01:18 +0300
commit6a72075d29feaae68bcb7d2562cce81fe3833164 (patch)
tree2817fe59a1a240c0e8a5b217c76175ced7f4ce87
parent9367523a3dd4ecc63a2460f7c4e45ab1eb447189 (diff)
downloadnautilus-6a72075d29feaae68bcb7d2562cce81fe3833164.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().
-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 a9e452adb..15acc25e8 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -135,6 +135,7 @@ update_information_label (NautilusQueryEditor *editor)
gtk_label_set_label (GTK_LABEL (priv->label), label);
g_free (uri);
+ nautilus_file_unref (file);
}
}