srtpenc: unref caps after gst_query_set_caps_result
authorAleix Conchillo Flaqué <aleix@oblong.com>
Fri, 28 Feb 2014 19:16:27 +0000 (11:16 -0800)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 1 Mar 2014 15:40:39 +0000 (16:40 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=725412

ext/srtp/gstsrtpenc.c

index bfba6805d6ede2bd83fbbe18e2c8739df80581cd..4bac174dcf8cc7b9dc32dcb488a3b48d11337009 100644 (file)
@@ -834,6 +834,7 @@ gst_srtp_enc_sink_query (GstPad * pad, GstObject * parent, GstQuery * query,
       }
 
       gst_query_set_caps_result (query, ret);
+      gst_caps_unref (ret);
       return TRUE;
     return_template: