private void finalizeBlob(SQLiteBlob blob) { Internal.logFine(blob, "finalizing"); SWIGTYPE_p_sqlite3_blob handle = blob.blobHandle(); blob.clear(); softClose(handle, blob); synchronized (myLock) { forgetBlob(blob); } }
/** * Disposes this blob and frees allocated resources. * <p> * After blob is disposed, it is no longer usable and holds no references to connection * or sqlite db. */ public void dispose() { if (myHandle == null) return; try { myController.validate(); } catch (SQLiteException e) { Internal.recoverableError(this, "invalid dispose: " + e, true); return; } Internal.logFine(this, "disposing"); myController.dispose(this); // clear may be called from dispose() too clear(); }