提交 d12a3bc8 编写于 作者: C Cyrus Najmabadi

dispose on failure codepath.

上级 6859b74d
......@@ -453,7 +453,7 @@ private SymbolKeyResolution ReadWorker(SymbolKeyType type)
/// <summary>
/// Reads an array of symbols out from the key. Note: the number of symbols returned
/// will either be the same as the original amount writtern, or <c>default</c> will be
/// will either be the same as the original amount written, or <c>default</c> will be
/// returned. It will never be less or more. <c>default</c> will be returned if any
/// elements could not be resolved to the requested <typeparamref name="TSymbol"/> type
/// in the provided <see cref="Compilation"/>.
......@@ -471,6 +471,7 @@ private SymbolKeyResolution ReadWorker(SymbolKeyType type)
}
else
{
result.Dispose();
return default;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册