[Bug 65518] New: tp_debug_client_get_messages_finish has incorrect transfer annotation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 7 10:30:47 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=65518

          Priority: medium
            Bug ID: 65518
          Keywords: patch
          Assignee: simon.mcvittie at collabora.co.uk
           Summary: tp_debug_client_get_messages_finish has incorrect
                    transfer annotation
        QA Contact: telepathy-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: simon.mcvittie at collabora.co.uk
          Hardware: Other
            Status: ASSIGNED
           Version: unspecified
         Component: tp-glib
           Product: Telepathy

Created attachment 80489
  --> https://bugs.freedesktop.org/attachment.cgi?id=80489&action=edit
tp_debug_client_get_messages_finish: fix annotation

Returning a GPtrArray with (transfer full) means the caller is expected
to do the equivalent of:

    g_ptr_array_foreach (pa, (GFunc) g_free, NULL);
    g_ptr_array_unref (pa);

whereas we just want them to unref it. This crashed my g-i-based
debug-client.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the telepathy-bugs mailing list