Index: Ringtoets/Common/src/Ringtoets.Common.IO/DikeProfiles/ProfileLocationReader.cs =================================================================== diff -u -rb9e640cceb967cc24e3999c373ddb5040e59a1f0 -r94f14096f9a5565b9f961c7b7e1822ef0976a42a --- Ringtoets/Common/src/Ringtoets.Common.IO/DikeProfiles/ProfileLocationReader.cs (.../ProfileLocationReader.cs) (revision b9e640cceb967cc24e3999c373ddb5040e59a1f0) +++ Ringtoets/Common/src/Ringtoets.Common.IO/DikeProfiles/ProfileLocationReader.cs (.../ProfileLocationReader.cs) (revision 94f14096f9a5565b9f961c7b7e1822ef0976a42a) @@ -113,9 +113,18 @@ public void Dispose() { - pointsShapeFileReader.Dispose(); + Dispose(true); + GC.SuppressFinalize(this); } + protected virtual void Dispose(bool disposing) + { + if (disposing) + { + pointsShapeFileReader.Dispose(); + } + } + /// /// Open a shapefile containing dike locations as point features. ///