func (t *TesseractAPI) baseAPIDelete() { t.mutex.Lock() defer t.mutex.Unlock() if !t.disposed { C.TessBaseAPIDelete(t.api) t.disposed = true } }
// void TessBaseAPIDelete(TessBaseAPI* handle); // void TessBaseAPIEnd(TessBaseAPI* handle); func (t *Tess) delete() { if t.tba != nil { C.TessBaseAPIEnd(t.tba) C.TessBaseAPIDelete(t.tba) } }