From 835bf9a7e5054a2078d01655c1546215d37cdb34 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Wed, 4 Oct 2017 15:45:37 +0300 Subject: [PATCH] Fixed release build --- src/Shared/PlatformSupport/StandardRuntimePlatform.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Shared/PlatformSupport/StandardRuntimePlatform.cs b/src/Shared/PlatformSupport/StandardRuntimePlatform.cs index d648b630bd..fafa17a810 100644 --- a/src/Shared/PlatformSupport/StandardRuntimePlatform.cs +++ b/src/Shared/PlatformSupport/StandardRuntimePlatform.cs @@ -69,7 +69,9 @@ namespace Avalonia.Shared.PlatformSupport { if (!IsDisposed) { +#if DEBUG Backtraces.Remove(_backtrace); +#endif _plat.Free(Address, Size); GC.RemoveMemoryPressure(Size); IsDisposed = true;