mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
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
|
||||
* the mimetype list as a XdndTypeList property.
|
||||
*/
|
||||
Atom *atomlist;
|
||||
g_autofree Atom *atomlist = NULL;
|
||||
gint i = 0;
|
||||
|
||||
xev.xclient.data.l[1] |= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user