Skip to content

Commit

Permalink
Fix memory leak caused by wrong implementation of GetHashCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Meivyn authored May 31, 2024
1 parent 01a0540 commit 2236b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPA.Loader/Config/ConfigRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public bool Equals(DirectoryInfo x, DirectoryInfo y)
=> x?.FullName == y?.FullName;

public int GetHashCode(DirectoryInfo obj)
=> obj?.GetHashCode() ?? 0;
=> obj?.FullName.GetHashCode() ?? 0;
}

private static readonly ConcurrentBag<Config> configs = new();
Expand Down

0 comments on commit 2236b34

Please sign in to comment.