[Spice-devel] [spice-gtk v1] display-mjpeg: free queue

Christophe Fergeau cfergeau at redhat.com
Wed Mar 1 15:31:26 UTC 2017


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Wed, Mar 01, 2017 at 04:07:03PM +0100, Victor Toso wrote:
> From: Victor Toso <me at victortoso.com>
> 
> 24 bytes in 1 blocks are definitely lost in loss record 4,300 of 14,518
>    at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
>    by 0xB12C5B8: g_malloc (gmem.c:94)
>    by 0xB144B12: g_slice_alloc (gslice.c:1025)
>    by 0xB14513D: g_slice_alloc0 (gslice.c:1051)
>    by 0x50EE096: create_mjpeg_decoder (channel-display-mjpeg.c:310)
>    by 0x50B5ACC: display_handle_stream_create (channel-display.c:1230)
>    by 0x50AAEE3: spice_channel_handle_msg (spice-channel.c:3014)
>    by 0x50A7AE4: spice_channel_recv_msg (spice-channel.c:2024)
>    by 0x50A829D: spice_channel_iterate_read (spice-channel.c:2262)
>    by 0x50A84B0: spice_channel_iterate (spice-channel.c:2300)
>    by 0x50A926B: spice_channel_coroutine (spice-channel.c:2588)
>    by 0x50F0D10: coroutine_trampoline (coroutine_ucontext.c:63)
> 
> Signed-off-by: Victor Toso <victortoso at redhat.com>
> ---
>  src/channel-display-mjpeg.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/channel-display-mjpeg.c b/src/channel-display-mjpeg.c
> index 67746c3..722494e 100644
> --- a/src/channel-display-mjpeg.c
> +++ b/src/channel-display-mjpeg.c
> @@ -289,6 +289,7 @@ static void mjpeg_decoder_destroy(VideoDecoder* video_decoder)
>      MJpegDecoder *decoder = (MJpegDecoder*)video_decoder;
>  
>      mjpeg_decoder_drop_queue(decoder);
> +    g_queue_free(decoder->msgq);
>      jpeg_destroy_decompress(&decoder->mjpeg_cinfo);
>      g_free(decoder->out_frame);
>      free(decoder);
> -- 
> 2.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170301/933e0c2f/attachment.sig>


More information about the Spice-devel mailing list