theoradec: fix video state leaks
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 7 Jun 2012 10:16:13 +0000 (11:16 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 7 Jun 2012 10:23:23 +0000 (11:23 +0100)
ext/theora/gsttheoradec.c

index 4c4308d..6a47b8b 100644 (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;
 }