GNOME Bugzilla – Bug 338184
[theoradec] don't leak element in _chain()
Last modified: 2006-04-13 09:26:59 UTC
attached patch should fix element leakage. It would nice if someoen chould check if we leak the buffer too.
Created attachment 63287 [details] [review] fix element leak
Created attachment 63288 [details] [review] fix the patch that fixes the leak
My copy of theoraenc.c has: static GstFlowReturn theora_enc_chain (GstPad * pad, GstBuffer * buffer) { ... enc = GST_THEORA_ENC (GST_PAD_PARENT (pad)); ... } GST_PAD_PARENT doesn't add a reference, so there's no need for a gst_object_unref(enc) either at the end, is there?
ohh, shouldn't it do gst_pad_get_parent() ?
Don't think that's required in chain functions