[tracker-miners/wip/carlosg/task-type-3.0] libtracker-miner: Fix task type typo




commit 88196e8df3f99b2269f428e8e0e156f27fbe3388
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 15 12:48:33 2020 +0100

    libtracker-miner: Fix task type typo
    
    The TrackerTask is a simple struct/boxed type, not a GObject. Use
    the right refcount function with it.
    
    Related: https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/155

 src/libtracker-miner/tracker-sparql-buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index 7afa12dde..35e612751 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -522,7 +522,7 @@ tracker_sparql_buffer_push_finish (TrackerSparqlBuffer  *buffer,
        task = g_task_propagate_pointer (G_TASK (res), error);
 
        if (!task)
-               task = g_object_ref (g_task_get_task_data (G_TASK (res)));
+               task = tracker_task_ref (g_task_get_task_data (G_TASK (res)));
 
        return task;
 }


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