add finalize() methods for WolfSSLCertManager and WolfSSLCertificate classes
parent
c697bc9dd9
commit
0d28f231c2
|
@ -87,4 +87,16 @@ public class WolfSSLCertManager {
|
||||||
/* free Java resources */
|
/* free Java resources */
|
||||||
this.active = false;
|
this.active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
|
@Override
|
||||||
|
protected void finalize() throws Throwable
|
||||||
|
{
|
||||||
|
if (this.active == true) {
|
||||||
|
/* free resources, set state */
|
||||||
|
this.free();
|
||||||
|
this.active = false;
|
||||||
|
}
|
||||||
|
super.finalize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -391,4 +391,16 @@ public class WolfSSLCertificate {
|
||||||
/* free Java resources */
|
/* free Java resources */
|
||||||
this.active = false;
|
this.active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
|
@Override
|
||||||
|
protected void finalize() throws Throwable
|
||||||
|
{
|
||||||
|
if (this.active == true) {
|
||||||
|
/* free resources, set state */
|
||||||
|
this.free();
|
||||||
|
this.active = false;
|
||||||
|
}
|
||||||
|
super.finalize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue