sdp: Fix leaking of SDPMedia in the adder of SDPMessage

This commit is contained in:
Sebastian Dröge 2019-02-28 20:28:03 +02:00
parent 0dcaa072a1
commit 43a7eb8642

View file

@ -186,7 +186,7 @@ impl SDPMessageRef {
unsafe {
ffi::gst_sdp_message_add_media(
&mut self.0,
media.to_glib_full() as *mut ffi::GstSDPMedia,
media.to_glib_none().0 as *mut ffi::GstSDPMedia,
);
}
}