rtpsession: Fix heap-use-after-free of twcc_packets structure

This is a regression introduced by 90d99c7b52d9dc82a220cca1355f1dca3d57a838.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8427>
This commit is contained in:
Philippe Normand 2025-02-06 17:13:16 +00:00
parent bb74aceb5d
commit a39f465692

View File

@ -3012,8 +3012,6 @@ gst_rtp_session_notify_twcc (RTPSession * sess,
gst_structure_copy (twcc_packets));
gst_pad_push_event (send_rtp_sink, event);
gst_object_unref (send_rtp_sink);
} else {
gst_structure_free (twcc_packets);
}
if (send_rtp_src) {