kate: unref events when freeing events list
authorThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 20:00:03 +0000 (17:00 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 20:00:03 +0000 (17:00 -0300)
Instead of just feeing the queue structs

ext/kate/gstkateutil.c

index 6e96c9d..bd0a3e5 100644 (file)
@@ -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);