From d959dafae030290c90cbd7c1d1bde905a7f74f9b Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 6 Dec 2017 11:14:40 +0000 Subject: [PATCH] Revert "Pinned some more delegates" This reverts commit 7913ccd17150d3a242052450d3dac9325b5a7bd4. --- Facepunch.Steamworks/Interop/ServerRules.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Facepunch.Steamworks/Interop/ServerRules.cs b/Facepunch.Steamworks/Interop/ServerRules.cs index 3acff8d..2cdb16a 100644 --- a/Facepunch.Steamworks/Interop/ServerRules.cs +++ b/Facepunch.Steamworks/Interop/ServerRules.cs @@ -71,9 +71,9 @@ void InstallVTable() ThisVTable.InternalRulesFailedToRespond db = ( _ ) => InternalOnRulesFailedToRespond(); ThisVTable.InternalRulesRefreshComplete dc = ( _ ) => InternalOnRulesRefreshComplete(); - RulesRespondPin = GCHandle.Alloc( da, GCHandleType.Pinned ); - FailedRespondPin = GCHandle.Alloc( db, GCHandleType.Pinned ); - CompletePin = GCHandle.Alloc( dc, GCHandleType.Pinned ); + RulesRespondPin = GCHandle.Alloc( da ); + FailedRespondPin = GCHandle.Alloc( db ); + CompletePin = GCHandle.Alloc( dc ); var t = new ThisVTable() { @@ -93,9 +93,9 @@ void InstallVTable() StdVTable.InternalRulesFailedToRespond db = InternalOnRulesFailedToRespond; StdVTable.InternalRulesRefreshComplete dc = InternalOnRulesRefreshComplete; - RulesRespondPin = GCHandle.Alloc( da, GCHandleType.Pinned ); - FailedRespondPin = GCHandle.Alloc( db, GCHandleType.Pinned ); - CompletePin = GCHandle.Alloc( dc, GCHandleType.Pinned ); + RulesRespondPin = GCHandle.Alloc( da ); + FailedRespondPin = GCHandle.Alloc( db ); + CompletePin = GCHandle.Alloc( dc ); var t = new StdVTable() {