mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 14:25:35 +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);
|
||||
}
|
||||
|
||||
HandleDeviceAdded = null;
|
||||
HandleDeviceRemoved = null;
|
||||
HandleDeviceValueReceived = null;
|
||||
|
||||
if (hidmanager != IntPtr.Zero)
|
||||
{
|
||||
NativeMethods.IOHIDManagerClose(hidmanager, IOOptionBits.Zero);
|
||||
|
|
Loading…
Reference in a new issue