Browse Source

Set NativeBlob.Size to zero on dispose

Nikita Tsukanov 8 years ago
parent
commit
372ae88ba9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Shared/PlatformSupport/StandardRuntimePlatform.cs

+ 1 - 0
src/Shared/PlatformSupport/StandardRuntimePlatform.cs

@@ -76,6 +76,7 @@ namespace Avalonia.Shared.PlatformSupport
                     GC.RemoveMemoryPressure(Size);
                     IsDisposed = true;
                     Address = IntPtr.Zero;
+                    Size = 0;
                 }
             }