[nautilus] search-engine-recent: use g_autoptr for GThread



commit 8bcb64a3115bfbec90c012c03b51fd3396cb7759
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Oct 17 18:27:27 2018 +0200

    search-engine-recent: use g_autoptr for GThread

 src/nautilus-search-engine-recent.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/nautilus-search-engine-recent.c b/src/nautilus-search-engine-recent.c
index 993374214..3a7b2adc4 100644
--- a/src/nautilus-search-engine-recent.c
+++ b/src/nautilus-search-engine-recent.c
@@ -328,7 +328,7 @@ nautilus_search_engine_recent_start (NautilusSearchProvider *provider)
 {
     NautilusSearchEngineRecent *self = NAUTILUS_SEARCH_ENGINE_RECENT (provider);
     g_autoptr (GFile) location = NULL;
-    GThread *thread;
+    g_autoptr (GThread) thread = NULL;
 
     g_return_if_fail (self->query);
     g_return_if_fail (self->cancellable == NULL);
@@ -348,8 +348,6 @@ nautilus_search_engine_recent_start (NautilusSearchProvider *provider)
                            g_object_ref (self));
 
     g_object_notify (G_OBJECT (provider), "running");
-
-    g_thread_unref (thread);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]