From f294636b9c6d6cd5f0d897f43304dc2056aed58e Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Fri, 2 Feb 2018 00:23:53 +0200 Subject: [PATCH] Close document streams. Fixes #422 --- binding/Binding/SKDocument.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/Binding/SKDocument.cs b/binding/Binding/SKDocument.cs index bbebe631..febe11ad 100644 --- a/binding/Binding/SKDocument.cs +++ b/binding/Binding/SKDocument.cs @@ -1,4 +1,4 @@ -// +// // Bindings for SKDocument // // Author: @@ -58,7 +58,7 @@ namespace SkiaSharp { var stream = new SKFileWStream (path); var doc = CreateXps (stream, dpi); - stream.RevokeOwnership (); + stream.RevokeOwnership (doc); return doc; }