[nautilus/692-segfault-during-find-as-you-type-in-libgobject] search-engine-recent: Give back a ref to idle
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/692-segfault-during-find-as-you-type-in-libgobject] search-engine-recent: Give back a ref to idle
- Date: Sat, 13 Oct 2018 21:55:16 +0000 (UTC)
commit eb39505b3f30eaeafe644cd61d3213375f0e3414
Author: António Fernandes <antoniof gnome org>
Date: Sat Oct 13 22:39:46 2018 +0100
search-engine-recent: Give back a ref to idle
The search_thread_add_hits_idle() callback was given a reference to
the engine in commit 9d16ff2e21b49d0efa7ca51ff3e20c450aaa3c5e
However, this reference was withdrawn in commit 4c6d4eea995a66e80fb21ee83b66954d1ce71c08
This causes crashes when searching.
Restore reference count increase to fix it.
Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/692
src/nautilus-search-engine-recent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-search-engine-recent.c b/src/nautilus-search-engine-recent.c
index 8cc7b88f0..d265c1716 100644
--- a/src/nautilus-search-engine-recent.c
+++ b/src/nautilus-search-engine-recent.c
@@ -339,7 +339,7 @@ nautilus_search_engine_recent_start (NautilusSearchProvider *provider)
nautilus_query_get_recursive (self->query),
location))
{
- search_add_hits_idle (self, NULL);
+ search_add_hits_idle (g_object_ref (self), NULL);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]