mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
kate: unref events when freeing events list
Instead of just feeing the queue structs
This commit is contained in:
parent
c2ebc2349f
commit
cf76aa2a1d
1 changed files with 1 additions and 0 deletions
|
@ -186,6 +186,7 @@ gst_kate_util_decoder_base_free_event_queue (GstKateDecoderBase * decoder)
|
||||||
while (decoder->event_queue->length) {
|
while (decoder->event_queue->length) {
|
||||||
GstKateDecoderBaseQueuedEvent *item = (GstKateDecoderBaseQueuedEvent *)
|
GstKateDecoderBaseQueuedEvent *item = (GstKateDecoderBaseQueuedEvent *)
|
||||||
g_queue_pop_head (decoder->event_queue);
|
g_queue_pop_head (decoder->event_queue);
|
||||||
|
gst_event_unref (item->event);
|
||||||
g_slice_free (GstKateDecoderBaseQueuedEvent, item);
|
g_slice_free (GstKateDecoderBaseQueuedEvent, item);
|
||||||
}
|
}
|
||||||
g_queue_free (decoder->event_queue);
|
g_queue_free (decoder->event_queue);
|
||||||
|
|
Loading…
Reference in a new issue