Skip to content

Commit

Permalink
Library - Avoid GC of delegates in optimized builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna authored Feb 18, 2022
1 parent 7f1f925 commit ab5681f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DokanNet/Dokan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ public static void Mount(this IDokanOperations operations, string mountPoint, Do
{
throw new DokanException(status);
}
GC.KeepAlive(dokanOptions);
GC.KeepAlive(dokanOperations);
}

/// <summary>
Expand Down

0 comments on commit ab5681f

Please sign in to comment.