From 372ae88ba926268fe6cdb1e363506ed1baee9364 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Wed, 4 Oct 2017 17:50:31 +0300 Subject: [PATCH] Set NativeBlob.Size to zero on dispose --- src/Shared/PlatformSupport/StandardRuntimePlatform.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Shared/PlatformSupport/StandardRuntimePlatform.cs b/src/Shared/PlatformSupport/StandardRuntimePlatform.cs index fafa17a810..b777736f06 100644 --- a/src/Shared/PlatformSupport/StandardRuntimePlatform.cs +++ b/src/Shared/PlatformSupport/StandardRuntimePlatform.cs @@ -76,6 +76,7 @@ namespace Avalonia.Shared.PlatformSupport GC.RemoveMemoryPressure(Size); IsDisposed = true; Address = IntPtr.Zero; + Size = 0; } }