diff --git a/src/ZoneTree/Core/ZoneTree.cs b/src/ZoneTree/Core/ZoneTree.cs index 54f4038..ae26ac0 100644 --- a/src/ZoneTree/Core/ZoneTree.cs +++ b/src/ZoneTree/Core/ZoneTree.cs @@ -273,9 +273,14 @@ public void Drop() DiskSegment.Drop(); DiskSegment.Dispose(); foreach (var ros in ReadOnlySegmentQueue) + { ros.Drop(); + } foreach (var bs in BottomSegmentQueue) + { bs.Drop(); + bs.Dispose(); + } Options.WriteAheadLogProvider.DropStore(); Options.RandomAccessDeviceManager.DropStore(); }