protected void finalize() {

close();
}

in LargeObject.java so that the db resources are released when it is
garbage collected or am I missing something?

Philip Crotwell
This commit is contained in:
Bruce Momjian 2001-06-04 20:10:41 +00:00
parent eeaa497e7b
commit b69370441e

View File

@ -120,7 +120,15 @@ public class LargeObjectManager
res.close();
DriverManager.println("Large Object initialised");
}
/*
* Added to free resources during garbage collection,
* Philip Crotwell <crotwell@seis.sc.edu>
*/
protected void finalize() {
close();
}
/**
* This opens an existing large object, based on its OID. This method
* assumes that READ and WRITE access is required (the default).