Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/debugger-libs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mono.Debugging/Mono.Debugging.Client/BreakpointStore.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Client/BreakpointStore.cs b/Mono.Debugging/Mono.Debugging.Client/BreakpointStore.cs
index 64b14b2..5364c2b 100644
--- a/Mono.Debugging/Mono.Debugging.Client/BreakpointStore.cs
+++ b/Mono.Debugging/Mono.Debugging.Client/BreakpointStore.cs
@@ -34,6 +34,7 @@ using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.InteropServices;
using System.Collections.Immutable;
+using System.Collections.Concurrent;
namespace Mono.Debugging.Client
{
@@ -513,7 +514,8 @@ namespace Mono.Debugging.Client
Marshal.FreeHGlobal(buffer);
return;
}
- s_bufferStack.Push(buffer);
+ if (buffer != IntPtr.Zero)
+ s_bufferStack.Push(buffer);
}
}