Merge branch 'mcatanzaro/xdgmime-corruption' into 'main'

xdgmime: fix double free

See merge request GNOME/glib!2753
This commit is contained in:
Philip Withnall 2022-06-20 12:48:30 +00:00
commit 4101770274

View File

@ -350,8 +350,7 @@ xdg_mime_set_dirs (const char * const *dirs)
for (i = 0; xdg_dirs != NULL && xdg_dirs[i] != NULL; i++)
free (xdg_dirs[i]);
if (xdg_dirs != NULL)
free (xdg_dirs[i]);
free (xdg_dirs);
xdg_dirs = NULL;
if (dirs != NULL)