diff options
Diffstat (limited to 'tools/Sandcastle/Source/BuildAssembler/BuildComponents/IfThenComponent.cs')
-rw-r--r-- | tools/Sandcastle/Source/BuildAssembler/BuildComponents/IfThenComponent.cs | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/tools/Sandcastle/Source/BuildAssembler/BuildComponents/IfThenComponent.cs b/tools/Sandcastle/Source/BuildAssembler/BuildComponents/IfThenComponent.cs index 7d8f423..e44c0f2 100644 --- a/tools/Sandcastle/Source/BuildAssembler/BuildComponents/IfThenComponent.cs +++ b/tools/Sandcastle/Source/BuildAssembler/BuildComponents/IfThenComponent.cs @@ -1,5 +1,8 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// +// Copyright © Microsoft Corporation. +// This source file is subject to the Microsoft Permissive License. +// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx. +// All other rights reserved. + using System; using System.Collections.Generic; using System.Configuration; @@ -66,14 +69,16 @@ namespace Microsoft.Ddue.Tools { } - public override void Dispose () { - foreach (BuildComponent component in true_branch) { - component.Dispose(); - } - foreach (BuildComponent component in false_branch) { - component.Dispose(); + protected override void Dispose(bool disposing) { + if (disposing) { + foreach (BuildComponent component in true_branch) { + component.Dispose(); + } + foreach (BuildComponent component in false_branch) { + component.Dispose(); + } } - base.Dispose(); + base.Dispose(disposing); } } |