[Bug 753087] jpegdec: fix output state memory leak

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jul 30 23:29:21 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=753087

--- Comment #3 from Vineeth <vineeth.tm at samsung.com> ---
the reason it was not working like that was

in gst_jpeg_dec_handle_frame

we are doing
state = gst_video_decoder_get_output_state (bdec);
which increases the refcount...

and as soon as it reaches 
jpeg_finish_decompress (&dec->cinfo);
the library is throwing error
which makes it jump to
  if (setjmp (dec->jerr.setjmp_buffer)) {
    code = dec->jerr.pub.msg_code;
....
....
}
at this point of time, the local variable state is NULL, but the reference is
still there..

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list