diff --git a/ext/srtp/gstsrtpenc.c b/ext/srtp/gstsrtpenc.c index bfba6805d6..4bac174dcf 100644 --- a/ext/srtp/gstsrtpenc.c +++ b/ext/srtp/gstsrtpenc.c @@ -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: