Commit d33a5286 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-direct: Fix error fetching for single updates in update_array()

The error location was being silently leaked.
parent 82db0403
Pipeline #27483 passed with stage
in 5 minutes and 9 seconds
......@@ -611,12 +611,12 @@ update_array_async_thread_func (GTask *task,
/* Slow path, perform updates one by one */
for (i = 0; updates[i]; i++) {
GError *err = NULL;
GError **err = NULL;
err = g_ptr_array_index (errors, i);
err = (GError **) &g_ptr_array_index (errors, i);
tracker_sparql_connection_update (source_object, updates[i],
g_task_get_priority (task),
cancellable, &err);
cancellable, err);
}
g_task_return_pointer (task, errors,
......
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