[tracker-miners/wip/carlosg/task-type-3.0: 6/6] libtracker-miner: Fix task type typo
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/task-type-3.0: 6/6] libtracker-miner: Fix task type typo
- Date: Tue, 15 Dec 2020 12:10:41 +0000 (UTC)
commit a8e408d8c4fcc661c81e4af23f52628386b8ff69
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]