[nautilus] query-editor: unref file in update_information_label()
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] query-editor: unref file in update_information_label()
- Date: Thu, 21 Jul 2016 09:00:34 +0000 (UTC)
commit 30dd00df4bea2e708caf1afba8e3c575fa758322
Author: Ernestas Kulik <ernestask src gnome org>
Date: Thu Jul 21 11:40:05 2016 +0300
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 4e69fe9..db836db 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]