There is a memory leak in function "webkit_web_src_init" of "WebKitWebSourceGStreamer.cpp"
with setting pad-templates for ghostpads.
gst_static_pad_template_get() is used to get a GstPadTemplate out of static pad
template. This is then passed as a parameter to gst_ghost_pad_new_from_template,
which does a ref, but does not take ownership.
Attached is a patch that unrefs the pad template after it's used.
Created attachment 118663 [details]
Thanks for spotting this!
The pad template is still leaked in the case where appsrc is not created though?
Can you use GRefPtr for this GstPadTemplate pointer? You'd need to add support for it in GRefPtrGStreamer.
Comment on attachment 118663 [details]
r- as per above remarks, some of which I applied in the patch of bug 74495
(In reply to comment #4)
> Ping Judy?
(In reply to comment #5)
> (In reply to comment #4)
> > Ping Judy?
Do you mind updating this patch?
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > Ping Judy?
> > Yes?
> Do you mind updating this patch?
Will send out a new patch for review ...
Created attachment 121685 [details]
Comment on attachment 121685 [details]
Clearing flags on attachment: 121685
Committed r104475: <http://trac.webkit.org/changeset/104475>
All reviewed patches have been landed. Closing bug.