ges: Plug a leak in ges-smart-adder
authorThibault Saunier <tsaunier@gnome.org>
Sat, 10 May 2014 20:48:12 +0000 (22:48 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Sat, 10 May 2014 20:48:12 +0000 (22:48 +0200)
COVERTY CID 1212166

ges/ges-smart-adder.c

index e2006cc..2eb1f9d 100644 (file)
@@ -86,6 +86,7 @@ _request_new_pad (GstElement * element, GstPadTemplate * templ,
   infos->adder_pad = gst_element_request_pad (self->adder, templ, NULL, caps);
   if (infos->adder_pad == NULL) {
     GST_WARNING_OBJECT (element, "Could not get any pad from GstAdder");
+    g_slice_free (PadInfos, infos);
 
     return NULL;
   }