Stream. Dispose(Boolean) Method
Releases the unmanaged resources used by the SKMemoryStream and optionally releases the managed resources.
protected override void Dispose (bool disposing);
true to release both managed and unmanaged resources;
false to release only unmanaged resources.
Always dispose the object before you release your last reference to the SKMemoryStream. Otherwise, the resources it is using will not be freed until the garbage collector calls the finalizer.