v4l2videoenc/dec: Don't leak template caps
This commit is contained in:
parent
9ad90f3bf2
commit
cebb5baaa6
@ -983,6 +983,8 @@ gst_v4l2_video_dec_subclass_init (gpointer g_class, gpointer data)
|
|||||||
"Codec/Decoder/Video", cdata->description,
|
"Codec/Decoder/Video", cdata->description,
|
||||||
"Nicolas Dufresne <nicolas.dufresne@collabora.com>");
|
"Nicolas Dufresne <nicolas.dufresne@collabora.com>");
|
||||||
|
|
||||||
|
gst_caps_unref (cdata->sink_caps);
|
||||||
|
gst_caps_unref (cdata->src_caps);
|
||||||
g_free (cdata);
|
g_free (cdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1116,6 +1116,8 @@ gst_v4l2_video_enc_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