From 1dad35eefff6b65a2474fcc24d9d84363c86888e Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 7 Jun 2012 11:16:37 +0100 Subject: [PATCH] jpegdec: fix video state leak --- ext/jpeg/gstjpegdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index a508f6f..c595d0e 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -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); } -- 2.7.4