v4l2transform: fix cdata caps leaks
The cdata structure was freed but not its caps. It was already done in gst_v4l2_video_dec_subclass_init() and gst_v4l2_video_enc_subclass_init().
This commit is contained in:
parent
e579614b1a
commit
bb2063f632
@ -1159,6 +1159,8 @@ gst_v4l2_transform_subclass_init (gpointer g_class, gpointer data)
|
|||||||
gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
||||||
cdata->src_caps));
|
cdata->src_caps));
|
||||||
|
|
||||||
|
gst_caps_unref (cdata->sink_caps);
|
||||||
|
gst_caps_unref (cdata->src_caps);
|
||||||
g_free (cdata);
|
g_free (cdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user