mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 08:16:24 +01:00
Merge branch 'mcatanzaro/xdgmime-corruption' into 'main'
xdgmime: fix double free See merge request GNOME/glib!2753
This commit is contained in:
commit
4101770274
@ -350,8 +350,7 @@ xdg_mime_set_dirs (const char * const *dirs)
|
|||||||
|
|
||||||
for (i = 0; xdg_dirs != NULL && xdg_dirs[i] != NULL; i++)
|
for (i = 0; xdg_dirs != NULL && xdg_dirs[i] != NULL; i++)
|
||||||
free (xdg_dirs[i]);
|
free (xdg_dirs[i]);
|
||||||
if (xdg_dirs != NULL)
|
free (xdg_dirs);
|
||||||
free (xdg_dirs[i]);
|
|
||||||
xdg_dirs = NULL;
|
xdg_dirs = NULL;
|
||||||
|
|
||||||
if (dirs != NULL)
|
if (dirs != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user