Commit c297cd76 authored by Sam Thursfield's avatar Sam Thursfield

libtracker-direct: Add missing 'unowned' annotation

The .get_data_manager() method doesn't ref the data manager before
returning it. Vala code that called this method wasn't reffing it
either because 'owned' is the default ownership flag.

This fixes a critical that sometimes appeared on shutdown of

        (tracker-store:5986): GLib-GObject-CRITICAL **: 10:53:13.275: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
parent fbfd3fa4
Pipeline #114939 failed with stage
in 3 minutes and 42 seconds
......@@ -4,7 +4,7 @@ namespace Tracker {
[CCode (cheader_filename = "libtracker-direct/tracker-direct.h")]
public class Connection : Tracker.Sparql.Connection, GLib.Initable, GLib.AsyncInitable {
public Connection (Tracker.Sparql.ConnectionFlags connection_flags, GLib.File loc, GLib.File? journal, GLib.File? ontology) throws Tracker.Sparql.Error, GLib.IOError, GLib.DBusError;
public Tracker.Data.Manager get_data_manager ();
public unowned Tracker.Data.Manager get_data_manager ();
public void sync ();
public static void set_default_flags (Tracker.DBManagerFlags flags);
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