[Bug 656205] Any static method who returns floating ref object should be marked as (transfer none)

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Aug 10 02:24:36 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=656205
  GStreamer | gstreamer (core) | 0.11.x

Sebastian Dröge <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #193483|none                        |needs-work
             status|                            |

--- Comment #2 from Sebastian Dröge <slomo at circular-chaos.org> 2011-08-10 09:24:30 UTC ---
(From update of attachment 193483)
As discussed on IRC this is not a good solution because it's conceptionally
wrong. The return value is owned by the caller and the caller has to unref it
after usage.

pygobject has some special magic to handle floating refs which makes it work if
transfer none is used but a better solution should be found on the GI side. For
example by adding a new (transfer floating) annotation

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list