Fix warning about realloc in xdgmimemagic