[Spice-commits] src/channel-display-mjpeg.c

Victor Toso de Carvalho victortoso at kemper.freedesktop.org
Wed Mar 1 20:17:45 UTC 2017


 src/channel-display-mjpeg.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d48f2ff14bb692f90c9d5329c774288e397e48a5
Author: Victor Toso <me at victortoso.com>
Date:   Wed Mar 1 15:41:42 2017 +0100

    display-mjpeg: free queue
    
    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>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

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);


More information about the Spice-commits mailing list