Closed Aprogiena closed 6 years ago
@Aprogiena I suppose ScriptReader should be made IDisposable so that you can dispose of the Stream when Dispose gets called?
using(var reader = new ScriptReader(_Script)
{
}
yes that's what i was thinking, but as always, this will require change in quite a lot of code but what can you do :-)
NBitcoin.ScriptReader
is notIDisposable
, but it contains innerStream
, oftenMemoryStream
. Should not this inner stream be disposed?