Small bug Dispose bug in VHD\disk.cs

Mar 1, 2010 at 12:10 AM

foreach (var record in _files)
{
    if (record.Second == Ownership.Dispose)
    {
         record.First.Dispose();
    }
}
_files = null;

Dispose should be recallable, the foreach loop should insure that _files is not null before attempting to iterate.

Cheers,
Bill

Coordinator
Mar 1, 2010 at 9:21 PM

Thanks Bill - I've checked in a fix.

Cheers,

Ken