This commit is contained in:
TC6IDM 2023-07-17 21:41:17 -05:00 committed by GitHub
commit df454637df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -27,13 +27,12 @@ public class AlignedTableFloat32 {
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_AlignedTableFloat32(swigCPtr);
}
swigCPtr = 0;
if (swigCPtr == 0) return;
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_AlignedTableFloat32(swigCPtr);
}
swigCPtr = 0;
}
public void setTab(SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t value) {