[gtk/matthiasc/for-master: 5/5] x11: Plug a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 5/5] x11: Plug a memory leak
- Date: Thu, 9 Jul 2020 17:54:19 +0000 (UTC)
commit 395521f3d333e4aa4b7351db9b07ee8a5f8f2a3b
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 9 13:52:53 2020 -0400
x11: Plug a memory leak
Don't leak atoms when we're storing the clipboard.
gdk/x11/gdkclipboard-x11.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/x11/gdkclipboard-x11.c b/gdk/x11/gdkclipboard-x11.c
index bbfdfc6b4b..bd46f24a15 100644
--- a/gdk/x11/gdkclipboard-x11.c
+++ b/gdk/x11/gdkclipboard-x11.c
@@ -653,6 +653,8 @@ gdk_x11_clipboard_store_async (GdkClipboard *clipboard,
GDK_DISPLAY_NOTE (display, CLIPBOARD,
g_printerr ("%s: X error during ConvertSelection() while storing selection: %d\n",
cb->selection, error));
}
+
+ g_free (atoms);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]