mime: Fix string leak
Leak report
Direct leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x5a58c47b9829 in malloc (/usr/asan/bin/xfce4-mime-helper+0x16d829)
#1 0x71460a5d5062 in g_malloc glib/gmem.c:100:13
#2 0x71460a6118d2 in g_strdup glib/gstrfuncs.c:323:17
#3 0x5a58c480e155 in g_strdup_inline /usr/include/glib-2.0/glib/gstrfuncs.h:321:10
#4 0x5a58c480e155 in main dialogs/mime-settings/xfce-mime-helper-main.c:120:16
Steps to reproduce
DESKTOP_STARTUP_ID="foo" /usr/local/bin/xfce4-mime-helper
Testing
- No issues were detected with LSan, ASan, or Valgrind when testing the patch