mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
jpegdec: fix video state leak
This commit is contained in:
parent
eb982e4bbe
commit
1dad35eeff
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue