PR: 9664
fix close method so if an app directly calls close(), finalize wont blow up.
This commit is contained in:
parent
bee745af0d
commit
00e64ab40d
|
@ -34,8 +34,10 @@ public class Pdh extends Win32Bindings {
|
|||
h_counter = -1l;
|
||||
}
|
||||
|
||||
if (h_query != -1l) {
|
||||
pdhCloseQuery(h_query);
|
||||
}
|
||||
}
|
||||
|
||||
public double getSingleValue(String cp) throws Win32Exception {
|
||||
setCounterPath(cp);
|
||||
|
|
Loading…
Reference in New Issue