Browse Source

Fix memory leak caused by wrong implementation of `GetHashCode`

master
Meivyn 5 months ago
committed by GitHub
parent
commit
2236b34fe8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Config/ConfigRuntime.cs

+ 1
- 1
IPA.Loader/Config/ConfigRuntime.cs View File

@ -22,7 +22,7 @@ namespace IPA.Config
=> x?.FullName == y?.FullName; => x?.FullName == y?.FullName;
public int GetHashCode(DirectoryInfo obj) public int GetHashCode(DirectoryInfo obj)
=> obj?.GetHashCode() ?? 0;
=> obj?.FullName.GetHashCode() ?? 0;
} }
private static readonly ConcurrentBag<Config> configs = new(); private static readonly ConcurrentBag<Config> configs = new();


Loading…
Cancel
Save