mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-05-11 06:22:18 +00:00
Fix leak in SDL_GetClipboardText()
This commit is contained in:
parent
1f35c7f2fd
commit
1a3556441e
|
@ -4023,7 +4023,7 @@ namespace SDL2
|
||||||
private static extern IntPtr INTERNAL_SDL_GetClipboardText();
|
private static extern IntPtr INTERNAL_SDL_GetClipboardText();
|
||||||
public static string SDL_GetClipboardText()
|
public static string SDL_GetClipboardText()
|
||||||
{
|
{
|
||||||
return UTF8_ToManaged(INTERNAL_SDL_GetClipboardText());
|
return UTF8_ToManaged(INTERNAL_SDL_GetClipboardText(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_SetClipboardText", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_SetClipboardText", CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
|
Loading…
Reference in a new issue