summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-08-16 11:20:54 +0200
committerWim Taymans <wtaymans@redhat.com>2018-08-16 11:44:27 +0200
commite098ad49187296273742dcd0c9c98eca1b351108 (patch)
treecd7ae6a9b949812cca2b199b420524fe2061416a
parentdad8f75f87647d5da5e5c9bbad22445bee00a378 (diff)
rfbdecoder: don't free decoder data
The decoder data is freed when we read more data.
-rw-r--r--gst/librfb/rfbdecoder.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c
index b3b01f5a7..fa763313a 100644
--- a/gst/librfb/rfbdecoder.c
+++ b/gst/librfb/rfbdecoder.c
@@ -983,7 +983,6 @@ rfb_decoder_corre_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
number_of_rectangles = RFB_GET_UINT32 (decoder->data);
color = GUINT32_SWAP_LE_BE ((RFB_GET_UINT32 (decoder->data + 4)));
- g_free (decoder->data);
GST_DEBUG ("number of rectangles :%d", number_of_rectangles);
@@ -1003,8 +1002,6 @@ rfb_decoder_corre_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
/* draw the rectangle in the foreground */
rfb_decoder_fill_rectangle (decoder, start_x + x, start_y + y, w, h, color);
-
- g_free (decoder->data);
}
return TRUE;