summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-07 01:31:40 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-07 11:46:39 -0500
commit7e9f0810d441225611d90a8349063858fdae0d1a (patch)
treeaaff3de629173b9f7cbbb41328a15b63aab51cf0
parent26b0554e5b4936e78db763cde3726d78700c04a9 (diff)
downloadgtk+-7e9f0810d441225611d90a8349063858fdae0d1a.tar.gz
x11: Fix a memory leak
We ref the content formats here, so we better unref it when done.
-rw-r--r--gdk/x11/gdkdrag-x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c
index c0706cbe74..00e9a104ab 100644
--- a/gdk/x11/gdkdrag-x11.c
+++ b/gdk/x11/gdkdrag-x11.c
@@ -1095,6 +1095,8 @@ xdnd_send_enter (GdkX11Drag *drag_x11)
}
xdnd_send_xevent (drag_x11, &xev);
+
+ gdk_content_formats_unref (formats);
}
static void