Do not free XRRScreenSize pointer in XRRSizes.

This commit is contained in:
the_fiddler 2008-01-25 13:50:50 +00:00
parent 0a61071ab5
commit daba18ac5d

View file

@ -1357,7 +1357,7 @@ XF86VidModeGetGammaRampSize(
array[i] = (XRRScreenSize)Marshal.PtrToStructure((IntPtr)data, typeof(XRRScreenSize)); array[i] = (XRRScreenSize)Marshal.PtrToStructure((IntPtr)data, typeof(XRRScreenSize));
data += Marshal.SizeOf(typeof(XRRScreenSize)); data += Marshal.SizeOf(typeof(XRRScreenSize));
} }
XFree(ptr); //XFree(ptr); // Looks like we must not free this.
return array; return array;
} }
} }