Should Fonet.Pdf.Gdi.GdiDeviceContent Use ReleaseDC instead of DeleteDC?

Sep 13, 2012 at 3:22 AM

When looking through the code, I notice that the GetDeviceContent ctor calls GetDC(IntPtr.Zero) to get the device context. However, in the Dispose() implementation, DeleteDC() is used to delete the context. Should this actually be ReleaseDC() instead? Seems dangerous to explicitly delete a seemingly shared resource that wasn't created by FO.NET.