From d4b8778299f5b01eba2e0ed92b5943070d98d9f7 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 7 Jun 2012 11:16:13 +0100 Subject: [PATCH] theoradec: fix video state leaks --- ext/theora/gsttheoradec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 4c4308d1ce..6a47b8bc58 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -243,6 +243,10 @@ theora_dec_stop (GstVideoDecoder * decoder) gst_tag_list_free (dec->tags); dec->tags = NULL; } + if (dec->input_state) + gst_video_codec_state_unref (dec->input_state); + if (dec->output_state) + gst_video_codec_state_unref (dec->output_state); return TRUE; }