diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-09 13:52:53 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-09 18:19:32 -0400 |
commit | d441e7106b788fc68609554882939c9e906c5ad7 (patch) | |
tree | 5857f82c641ca45347d543290b7499035b673c2e | |
parent | 4cd92f979ca6fc45d2384909620d2b47d2204e2a (diff) | |
download | gtk+-d441e7106b788fc68609554882939c9e906c5ad7.tar.gz |
x11: Plug a memory leak
Don't leak atoms when we're storing the clipboard.
-rw-r--r-- | gdk/x11/gdkclipboard-x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |