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() {