theoradec: fix video state leaks

This commit is contained in:
Vincent Penquerc'h 2012-06-07 11:16:13 +01:00
parent fd35793c38
commit d4b8778299

View file

@ -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;
}