Merge pull request #2307 from DarthSim/fix/pdfium-source-leak
Unref source on vips_foreign_load_pdf_close
This commit is contained in:
commit
3c0bfdf74c
@ -187,6 +187,7 @@ vips_foreign_load_pdf_close( VipsForeignLoadPdf *pdf )
|
|||||||
|
|
||||||
VIPS_FREEF( FPDF_ClosePage, pdf->page );
|
VIPS_FREEF( FPDF_ClosePage, pdf->page );
|
||||||
VIPS_FREEF( FPDF_CloseDocument, pdf->doc );
|
VIPS_FREEF( FPDF_CloseDocument, pdf->doc );
|
||||||
|
VIPS_UNREF( pdf->source );
|
||||||
|
|
||||||
g_mutex_unlock( vips_pdfium_mutex );
|
g_mutex_unlock( vips_pdfium_mutex );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user