[gnome-remote-desktop] vnc-pipewire-stream: Do not allocate frame data twice
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] vnc-pipewire-stream: Do not allocate frame data twice
- Date: Wed, 16 Feb 2022 09:41:53 +0000 (UTC)
commit 4bc58e0b9640cbf4635cd943625cd6bcd5dd9d56
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Mon Jan 31 15:40:47 2022 +0100
vnc-pipewire-stream: Do not allocate frame data twice
Otherwise, the VNC backend leaks hundreds of Mebibytes within seconds.
src/grd-vnc-pipewire-stream.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/src/grd-vnc-pipewire-stream.c b/src/grd-vnc-pipewire-stream.c
index 19f0a8ac..a6702c98 100644
--- a/src/grd-vnc-pipewire-stream.c
+++ b/src/grd-vnc-pipewire-stream.c
@@ -452,7 +452,6 @@ process_buffer (GrdVncPipeWireStream *stream,
return;
}
- frame->data = g_malloc0 (height * dst_stride);
src_data = SPA_MEMBER (map, buffer->datas[0].mapoffset, uint8_t);
src_stride = buffer->datas[0].chunk->stride;
copy_frame_data (frame, src_data,
@@ -517,8 +516,6 @@ process_buffer (GrdVncPipeWireStream *stream,
src_data = buffer->datas[0].data;
- frame->data = g_malloc0 (height * dst_stride);
-
src_stride = buffer->datas[0].chunk->stride;
copy_frame_data (frame, src_data,
width, height,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]