mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 09:26:17 +01:00
21f5e175d4
Rather than `strdup()`ing strings when passing them into `_xdg_glob_list_append()`, `strdup()` them *inside* the function instead. This avoids a leak in the case that the list entry (tuple of `data` and `mime_type`) already exists in the list. This has been upstreamed as https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/36. Signed-off-by: Philip Withnall <pwithnall@gnome.org> |
||
---|---|---|
.. | ||
.gitignore | ||
meson.build | ||
xdgmime.c | ||
xdgmime.h | ||
xdgmimealias.c | ||
xdgmimealias.h | ||
xdgmimecache.c | ||
xdgmimecache.h | ||
xdgmimeglob.c | ||
xdgmimeglob.h | ||
xdgmimeicon.c | ||
xdgmimeicon.h | ||
xdgmimeint.c | ||
xdgmimeint.h | ||
xdgmimemagic.c | ||
xdgmimemagic.h | ||
xdgmimeparent.c | ||
xdgmimeparent.h |