Merge pull request #2307 from DarthSim/fix/pdfium-source-leak

Unref source on vips_foreign_load_pdf_close
This commit is contained in:
John Cupitt 2021-06-15 13:19:37 +01:00 committed by GitHub
commit 3c0bfdf74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,7 @@ vips_foreign_load_pdf_close( VipsForeignLoadPdf *pdf )
VIPS_FREEF( FPDF_ClosePage, pdf->page );
VIPS_FREEF( FPDF_CloseDocument, pdf->doc );
VIPS_UNREF( pdf->source );
g_mutex_unlock( vips_pdfium_mutex );
}