encodebin: fix list leak when requesting a new pad
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 31 Mar 2017 14:59:19 +0000 (15:59 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 31 Mar 2017 15:14:50 +0000 (16:14 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=780769

gst/encoding/gstencodebin.c

index 5e757f9..9910e80 100644 (file)
@@ -755,6 +755,7 @@ request_pad_for_stream (GstEncodeBin * encodebin, GType ptype,
   if (!sgroup)
     goto no_stream_group;
 
+  g_list_free (not_found_encoder_profs);
   return sgroup->ghostpad;
 
 no_stream_profile: