mjpeg: don't leak last stream image

When a stream is destroy, the memory allocated to handle the mjpeg
decoding is freed by calling stream_mjpeg_cleanup. However, the
memory allocated to contain the last uncompressed stream image
wasn't freed.
This commit is contained in:
Christophe Fergeau 2011-07-29 16:40:23 +02:00
parent bb30232fcd
commit a73f841b59

View File

@ -138,4 +138,6 @@ G_GNUC_INTERNAL
void stream_mjpeg_cleanup(display_stream *st)
{
jpeg_destroy_decompress(&st->mjpeg_cinfo);
free(st->out_frame);
st->out_frame = NULL;
}