[Webkit-unassigned] [Bug 118473] [GTK] Leak: GstElement* leaking in MediaPlayerPrivateGStreamer::createAudioSink()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 8 09:32:25 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=118473
--- Comment #4 from Christophe Dumez <dchris at gmail.com> 2013-07-08 09:34:24 PST ---
(From update of attachment 206249)
View in context: https://bugs.webkit.org/attachment.cgi?id=206249&action=review
> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1578
> + GRefPtr<GstElement> audioSink = adoptGRef(gst_bin_new("audio-sink"));
The doc says that gst_bin_new() returns a floating reference:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html#gst-bin-new
How come adopting doesn't assert here?
template <> GRefPtr<GstElement> adoptGRef(GstElement* ptr)
{
ASSERT(!ptr || !gstObjectIsFloating(GST_OBJECT(ptr)));
return GRefPtr<GstElement>(ptr, GRefPtrAdopt);
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list