Skip to content

Commit 333b1b4

Browse files
committed
null out disposed keys
1 parent 5a04fcb commit 333b1b4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ private string TestKeyDeletedInRegistryView(string keyName, RegistryView registr
521521
} finally {
522522
for (int i = 0; i < registryKeys.Count; i++) {
523523
registryKeys[i].Dispose();
524+
registryKeys[i] = null;
524525
}
525526

526527
registryKeys = null;

0 commit comments

Comments
 (0)