From 5d66aaa034d78c077f2af711032026c6b888adfe Mon Sep 17 00:00:00 2001 From: thefiddler Date: Wed, 23 Jul 2014 10:10:37 +0200 Subject: [PATCH] [Mac] Do not set callback delegates to null This is done automatically by the GC once they are eligible for collection. --- Source/OpenTK/Platform/MacOS/HIDInput.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/OpenTK/Platform/MacOS/HIDInput.cs b/Source/OpenTK/Platform/MacOS/HIDInput.cs index 93043b2..4a31367 100755 --- a/Source/OpenTK/Platform/MacOS/HIDInput.cs +++ b/Source/OpenTK/Platform/MacOS/HIDInput.cs @@ -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); -- 2.7.4