add using for Bing search source

This commit is contained in:
弘韬 张 2021-01-07 21:47:31 +08:00
parent 971d374582
commit 919d5d51ab

View file

@ -39,7 +39,8 @@ namespace Flow.Launcher.Plugin.WebSearch.SuggestionSources
JsonElement json;
try
{
json = (await JsonDocument.ParseAsync(resultStream)).RootElement.GetProperty("AS");
using (resultStream)
json = (await JsonDocument.ParseAsync(resultStream)).RootElement.GetProperty("AS");
}
catch (JsonException e)
{