From daba18ac5d02c2b14313134a3200a57adfbd4c47 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 25 Jan 2008 13:50:50 +0000 Subject: [PATCH] Do not free XRRScreenSize pointer in XRRSizes. --- Source/OpenTK/Platform/X11/API.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/API.cs b/Source/OpenTK/Platform/X11/API.cs index 9527ae7e..be0e4a4e 100644 --- a/Source/OpenTK/Platform/X11/API.cs +++ b/Source/OpenTK/Platform/X11/API.cs @@ -1357,7 +1357,7 @@ XF86VidModeGetGammaRampSize( array[i] = (XRRScreenSize)Marshal.PtrToStructure((IntPtr)data, typeof(XRRScreenSize)); data += Marshal.SizeOf(typeof(XRRScreenSize)); } - XFree(ptr); + //XFree(ptr); // Looks like we must not free this. return array; } }