mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-23 11:18:21 +00:00
[Mac] Do not set callback delegates to null
This is done automatically by the GC once they are eligible for collection.
This commit is contained in:
parent
4093b39fac
commit
5d66aaa034
|
@ -1775,10 +1775,6 @@ namespace OpenTK.Platform.MacOS
|
||||||
DeviceRemoved(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, device);
|
DeviceRemoved(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, device);
|
||||||
}
|
}
|
||||||
|
|
||||||
HandleDeviceAdded = null;
|
|
||||||
HandleDeviceRemoved = null;
|
|
||||||
HandleDeviceValueReceived = null;
|
|
||||||
|
|
||||||
if (hidmanager != IntPtr.Zero)
|
if (hidmanager != IntPtr.Zero)
|
||||||
{
|
{
|
||||||
NativeMethods.IOHIDManagerClose(hidmanager, IOOptionBits.Zero);
|
NativeMethods.IOHIDManagerClose(hidmanager, IOOptionBits.Zero);
|
||||||
|
|
Loading…
Reference in a new issue