HPDF_Free (HPDF_Doc pdf) { HPDF_PTRACE ((" HPDF_Free\n")); if (pdf) { HPDF_MMgr mmgr = pdf->mmgr; HPDF_FreeDocAll (pdf); pdf->sig_bytes = 0; HPDF_FreeMem (mmgr, pdf); HPDF_MMgr_Free (mmgr); } }
/* * Class: org_libharu_PdfDocument * Method: freeDocAll * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_libharu_PdfDocument_freeDocAll(JNIEnv *env, jclass cls, jint pdf) { /* Free the provided document */ HPDF_FreeDocAll((HPDF_Doc) pdf); }