videoconvert: Fix leaking of the chroma resample helper objects

This commit is contained in:
Sebastian Dröge 2013-06-11 15:22:50 +02:00
parent eabd2a5c7b
commit eb09e561c4

View file

@ -90,6 +90,11 @@ videoconvert_convert_free (VideoConvert * convert)
{
gint i;
if (convert->upsample)
gst_video_chroma_resample_free (convert->upsample);
if (convert->downsample)
gst_video_chroma_resample_free (convert->downsample);
for (i = 0; i < convert->n_tmplines; i++)
g_free (convert->tmplines[i]);
g_free (convert->tmplines);