[gnome-remote-desktop] clipboard-vnc: Fix memory leak when updating clients clipboard
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] clipboard-vnc: Fix memory leak when updating clients clipboard
- Date: Thu, 18 Feb 2021 16:50:57 +0000 (UTC)
commit 93a811320010cfaa9ed1a049fe2d430f396f0f62
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Mon Feb 15 16:45:27 2021 +0100
clipboard-vnc: Fix memory leak when updating clients clipboard
The converted clipboard content, that will be sent to the client, is
currently leaked when the content has been sent.
Fix this memory leak by freeing the converted clipboard content after
the data has been sent.
src/grd-clipboard-vnc.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/grd-clipboard-vnc.c b/src/grd-clipboard-vnc.c
index 263a607..b8454fa 100644
--- a/src/grd-clipboard-vnc.c
+++ b/src/grd-clipboard-vnc.c
@@ -62,6 +62,8 @@ update_vnc_clipboard (GrdClipboardVnc *clipboard_vnc,
grd_session_vnc_set_client_clipboard_text (clipboard_vnc->session_vnc,
dst_data, strlen (dst_data));
+
+ g_free (dst_data);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]