jpegdec: fix video state leak

This commit is contained in:
Vincent Penquerc'h 2012-06-07 11:16:37 +01:00
parent eb982e4bbe
commit 1dad35eeff

View file

@ -117,6 +117,8 @@ gst_jpeg_dec_finalize (GObject * object)
GstJpegDec *dec = GST_JPEG_DEC (object);
jpeg_destroy_decompress (&dec->cinfo);
if (dec->input_state)
gst_video_codec_state_unref (dec->input_state);
G_OBJECT_CLASS (parent_class)->finalize (object);
}