[gtk/matthiasc/for-master: 7/7] x11: Plug a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 7/7] x11: Plug a memory leak
- Date: Thu, 9 Jul 2020 22:20:50 +0000 (UTC)
commit d441e7106b788fc68609554882939c9e906c5ad7
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]