Do not free XRRScreenSize pointer in XRRSizes.

This commit is contained in:
the_fiddler 2008-01-25 13:50:50 +00:00
parent a41007fd80
commit 5232e0a3b2

View file

@ -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;
}
}