Skip to content

Commit

Permalink
Remove finalization from RegistryKey (#8488)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Sep 20, 2023
1 parent 807243e commit b7920ec
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/src/main/java/hudson/util/jna/RegistryKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,6 @@ public TreeMap<String, Object> getValues() {
}


@Override
protected void finalize() throws Throwable {
super.finalize();
dispose();
}

public void dispose() {
if (handle != 0)
Advapi32.INSTANCE.RegCloseKey(handle);
Expand Down

0 comments on commit b7920ec

Please sign in to comment.