smart-video-mixer: fix memory leak on error path

Coverity 1212166
This commit is contained in:
Vincent Penquerc'h 2014-06-12 09:51:02 +01:00
parent edd95cf57d
commit 31257a260c

View file

@ -108,6 +108,7 @@ _request_new_pad (GstElement * element, GstPadTemplate * templ,
if (infos->mixer_pad == NULL) {
GST_WARNING_OBJECT (element, "Could not get any pad from GstMixer");
g_slice_free (PadInfos, infos);
return NULL;
}