private void Dispose(bool disposing) { if (disposing) { if (!disposed) { disposed = true; Stop(); if (nativeInterface != null) { nativeInterface.Dispose(); nativeInterface = null; } } } }
private void Dispose(bool disposing) { if (disposing) { if (!disposed) { disposed = true; HeadChanged = null; IndexChanged = null; ConfigChanged = null; RepositoryCommitted = null; RepositoryChanged = null; LocalBranchesChanged = null; RemoteBranchesChanged = null; Stop(); if (nativeInterface != null) { nativeInterface.Dispose(); nativeInterface = null; } } } }