Harden disposal paths and test project metadata
This commit is contained in:
@@ -1444,15 +1444,18 @@ namespace DynamORM.Helpers.Dynamics
|
||||
/// <summary>Gets a value indicating whether this instance is disposed.</summary>
|
||||
public bool IsDisposed { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
IsDisposed = true;
|
||||
|
||||
if (_uncertainResult != null)
|
||||
{
|
||||
/// <summary>
|
||||
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsDisposed)
|
||||
return;
|
||||
|
||||
IsDisposed = true;
|
||||
|
||||
if (_uncertainResult != null)
|
||||
{
|
||||
if (_uncertainResult is Node)
|
||||
((Node)_uncertainResult).Dispose();
|
||||
|
||||
@@ -1486,4 +1489,4 @@ namespace DynamORM.Helpers.Dynamics
|
||||
|
||||
#endregion Implementation of IExtendedDisposable
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user