mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-02-04 04:58:16 +00:00
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:
parent
bb30232fcd
commit
a73f841b59
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user