From 22c39c1d6af05dbc788e151b53672ad4f8797abd Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Mon, 7 Aug 2023 20:01:43 +0100 Subject: [PATCH] Fix conflicts --- Raylib-cs/types/native/UTF8Buffer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Raylib-cs/types/native/UTF8Buffer.cs b/Raylib-cs/types/native/UTF8Buffer.cs index 257cfdd..654cfe9 100644 --- a/Raylib-cs/types/native/UTF8Buffer.cs +++ b/Raylib-cs/types/native/UTF8Buffer.cs @@ -13,7 +13,7 @@ namespace Raylib_cs public UTF8Buffer(string text) { - _data = Marshal.StringToCoTaskMemUTF8(text); + _data = Marshal.StringToHGlobalAnsi(text); } public unsafe sbyte* AsPointer() @@ -23,7 +23,7 @@ namespace Raylib_cs public void Dispose() { - Marshal.FreeCoTaskMem(_data); + Marshal.FreeHGlobal(_data); } }