h264parse: fix leak in user data unregistered

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1458>
This commit is contained in:
Andoni Morales Alastruey 2022-05-16 14:21:53 +02:00 committed by GStreamer Marge Bot
parent ffdc8634e8
commit cb7e1a6576

View file

@ -2513,6 +2513,13 @@ gst_h264_sei_clear (GstH264SEIMessage * sei)
rud->data = NULL;
break;
}
case GST_H264_SEI_USER_DATA_UNREGISTERED:{
GstH264UserDataUnregistered *udu = &sei->payload.user_data_unregistered;
g_free ((guint8 *) udu->data);
udu->data = NULL;
break;
}
case GST_H264_SEI_UNHANDLED_PAYLOAD:{
GstH264SEIUnhandledPayload *payload = &sei->payload.unhandled_payload;