From d441e7106b788fc68609554882939c9e906c5ad7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 9 Jul 2020 13:52:53 -0400 Subject: [PATCH] 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