From cf76aa2a1d00bdec4f25cea31eacf423a6d27867 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 27 Jun 2014 17:00:03 -0300 Subject: [PATCH] kate: unref events when freeing events list Instead of just feeing the queue structs --- ext/kate/gstkateutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/kate/gstkateutil.c b/ext/kate/gstkateutil.c index 6e96c9d720..bd0a3e5f8a 100644 --- a/ext/kate/gstkateutil.c +++ b/ext/kate/gstkateutil.c @@ -186,6 +186,7 @@ gst_kate_util_decoder_base_free_event_queue (GstKateDecoderBase * decoder) while (decoder->event_queue->length) { GstKateDecoderBaseQueuedEvent *item = (GstKateDecoderBaseQueuedEvent *) g_queue_pop_head (decoder->event_queue); + gst_event_unref (item->event); g_slice_free (GstKateDecoderBaseQueuedEvent, item); } g_queue_free (decoder->event_queue);