Melt the butter in a medium frying pan over medium-low heat, then cook the garlic and leeks until they are soft but not too brown, about 3 minutes. Pour in the heavy cream, and stir for another minute, until the leeks have absorbed some of the liquid. Remove from heat, transfer to a mixing bowl, and allow to cool. Add in all other ingredients except the flour, mixing thoroughly. Gradually work in the flour until you have a dense dough that isn’t too sticky.