Skip to content

Commit 1f33c66

Browse files
author
David Kline (ANALOG)
committed
minor dispose update
1 parent 52afa42 commit 1f33c66

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Assets/MixedRealityToolkit/Services/BaseService.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public virtual void Destroy() { }
4040

4141
#region IDisposable Implementation
4242

43+
/// <summary>
44+
/// Value indicating if the object has completed disposal.
45+
/// </summary>
46+
/// <remarks>
47+
/// Set by derived classes to indicate that disposal has been completed.
48+
/// </remarks>
49+
protected bool disposed = false;
50+
4351
/// <summary>
4452
/// Finalizer
4553
/// </summary>
@@ -67,7 +75,7 @@ public void Dispose()
6775
/// True will release all managed resources, unmanaged resources are always released.
6876
/// </param>
6977
protected virtual void Dispose(bool disposing) { }
70-
78+
7179
#endregion IDisposable Implementation
7280
}
7381
}

0 commit comments

Comments
 (0)