videoutils: Use g_list_free_full instead of g_list_foreach and g_list_free
This commit is contained in:
parent
a9d12f7bae
commit
a44058c12e
@ -46,8 +46,8 @@ _gst_video_codec_frame_free (GstVideoCodecFrame * frame)
|
|||||||
gst_buffer_unref (frame->output_buffer);
|
gst_buffer_unref (frame->output_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_list_foreach (frame->events, (GFunc) gst_event_unref, NULL);
|
g_list_free_full (frame->events, (GDestroyNotify) gst_event_unref);
|
||||||
g_list_free (frame->events);
|
frame->events = NULL;
|
||||||
|
|
||||||
if (frame->user_data_destroy_notify)
|
if (frame->user_data_destroy_notify)
|
||||||
frame->user_data_destroy_notify (frame->user_data);
|
frame->user_data_destroy_notify (frame->user_data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user