Revert "Pinned some more delegates"

This reverts commit 7913ccd17150d3a242052450d3dac9325b5a7bd4.
This commit is contained in:
Garry Newman 2017-12-06 11:14:40 +00:00
parent 75530c6bef
commit d959dafae0

View File

@ -71,9 +71,9 @@ namespace Facepunch.Steamworks.Interop
ThisVTable.InternalRulesFailedToRespond db = ( _ ) => InternalOnRulesFailedToRespond(); ThisVTable.InternalRulesFailedToRespond db = ( _ ) => InternalOnRulesFailedToRespond();
ThisVTable.InternalRulesRefreshComplete dc = ( _ ) => InternalOnRulesRefreshComplete(); ThisVTable.InternalRulesRefreshComplete dc = ( _ ) => InternalOnRulesRefreshComplete();
RulesRespondPin = GCHandle.Alloc( da, GCHandleType.Pinned ); RulesRespondPin = GCHandle.Alloc( da );
FailedRespondPin = GCHandle.Alloc( db, GCHandleType.Pinned ); FailedRespondPin = GCHandle.Alloc( db );
CompletePin = GCHandle.Alloc( dc, GCHandleType.Pinned ); CompletePin = GCHandle.Alloc( dc );
var t = new ThisVTable() var t = new ThisVTable()
{ {
@ -93,9 +93,9 @@ namespace Facepunch.Steamworks.Interop
StdVTable.InternalRulesFailedToRespond db = InternalOnRulesFailedToRespond; StdVTable.InternalRulesFailedToRespond db = InternalOnRulesFailedToRespond;
StdVTable.InternalRulesRefreshComplete dc = InternalOnRulesRefreshComplete; StdVTable.InternalRulesRefreshComplete dc = InternalOnRulesRefreshComplete;
RulesRespondPin = GCHandle.Alloc( da, GCHandleType.Pinned ); RulesRespondPin = GCHandle.Alloc( da );
FailedRespondPin = GCHandle.Alloc( db, GCHandleType.Pinned ); FailedRespondPin = GCHandle.Alloc( db );
CompletePin = GCHandle.Alloc( dc, GCHandleType.Pinned ); CompletePin = GCHandle.Alloc( dc );
var t = new StdVTable() var t = new StdVTable()
{ {