Browse Source

Fixed release build

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

+ 2 - 0
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;