Commit 9ea71a9a authored by Marco Trevisan's avatar Marco Trevisan 🎺

search-engine-recent: use g_autoptr to manage self unref in idle

Use the same pattern we're using in recent_thread_func
parent 8bcb64a3
......@@ -92,7 +92,7 @@ static gboolean
search_thread_add_hits_idle (gpointer user_data)
SearchHitsData *search_hits = user_data;
NautilusSearchEngineRecent *self = search_hits->recent;
g_autoptr (NautilusSearchEngineRecent) self = search_hits->recent;
NautilusSearchProvider *provider = NAUTILUS_SEARCH_PROVIDER (self);
self->add_hits_idle_id = 0;
......@@ -111,8 +111,6 @@ search_thread_add_hits_idle (gpointer user_data)
g_object_notify (G_OBJECT (provider), "running");
g_object_unref (self);
return FALSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment