xwayland: Fix mime type atom list leak on DnD with more than 3 types

Found using the clang static analyzer

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1117
This commit is contained in:
Sebastian Keller 2020-03-10 23:27:35 +01:00
parent 0743381573
commit 509e9ca5a0

View File

@ -171,7 +171,7 @@ xdnd_send_enter (MetaXWaylandDnd *dnd,
/* We have more than 3 mimetypes, we must set up
* the mimetype list as a XdndTypeList property.
*/
Atom *atomlist;
g_autofree Atom *atomlist = NULL;
gint i = 0;
xev.xclient.data.l[1] |= 1;