diff --git a/gst/asfdemux/gstrtpasfdepay.c b/gst/asfdemux/gstrtpasfdepay.c index 2be7a01f20..d5179a8fe2 100644 --- a/gst/asfdemux/gstrtpasfdepay.c +++ b/gst/asfdemux/gstrtpasfdepay.c @@ -177,7 +177,8 @@ gst_rtp_asf_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps) buf = gst_buffer_new (); gst_buffer_take_memory (buf, -1, - gst_memory_new_wrapped (0, headers, g_free, headers_len, 0, headers_len)); + gst_memory_new_wrapped (0, headers, headers_len, 0, headers_len, headers, + g_free)); gst_rtp_base_depayload_push (depayload, buf);