[gstreamer-bugs] [Bug 168493] New: gst_index_factory_new() doesn't increase refcount of existing factory

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Fri Feb 25 03:27:52 PST 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=168493
 GStreamer | gstreamer (core) | Ver: 0.8.9

           Summary: gst_index_factory_new() doesn't increase refcount of
                    existing factory
           Product: GStreamer
           Version: 0.8.9
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: kaffeetisch at gmx.de
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: all-bugs at bugzilla.gnome.org


If gst_index_factory_new() finds a factory via gst_index_factory_find(), it
simply  returns it without increasing its refcount.  Usually, constructors
return a new object, so the receiver can always assume ownership without
manually increasing the refcount himself.  In this case, the receiver can't be
sure if he really owns the factory, which leads to either segfaults or leaks.

This is especially visible in language bindings which need to be very careful
about refcounts to avoid having dangling pointers all over the place.

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




More information about the Gstreamer-bugs mailing list