# | Line 95 | Line 95 | namespace RomCheater.Serialization | |
---|---|---|
95 | ||
96 | protected override void Dispose(bool disposing) | |
97 | { | |
98 | + | if (Cancelled) { return; } |
99 | try | |
100 | { | |
101 | base.Dispose(disposing); | |
101 | – | if (Cancelled) { return; } |
102 | // ensure ResultCount and ResultsWritten are equal | |
103 | if (ResultCount != ResultsWritten) | |
104 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |