@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/mellinoe/imgui.net</PackageProjectUrl>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DocumentationFile>bin\Debug\ImGui.NET.xml</DocumentationFile>
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\Release\ImGui.NET.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Diagnostics.Debug" Version="4.0.11" />
@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@ -91,6 +92,7 @@ namespace ImGuiNET
}
set
{
Debug.Assert(value != null);
if (value.Length > Length) // Doesn't fit into current buffer
FreeNativeBuffer();