Commit b6937044 authored by Bruce Momjian's avatar Bruce Momjian

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
parent eeaa497e
......@@ -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).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment