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:
parent
0743381573
commit
509e9ca5a0
@ -171,7 +171,7 @@ xdnd_send_enter (MetaXWaylandDnd *dnd,
|
|||||||
/* We have more than 3 mimetypes, we must set up
|
/* We have more than 3 mimetypes, we must set up
|
||||||
* the mimetype list as a XdndTypeList property.
|
* the mimetype list as a XdndTypeList property.
|
||||||
*/
|
*/
|
||||||
Atom *atomlist;
|
g_autofree Atom *atomlist = NULL;
|
||||||
gint i = 0;
|
gint i = 0;
|
||||||
|
|
||||||
xev.xclient.data.l[1] |= 1;
|
xev.xclient.data.l[1] |= 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user