Fix memory leak with virtual files in parse.c

This commit is contained in:
2020-03-06 09:36:07 -05:00
parent cfdd7bdd87
commit 02fa3f02f5
6 changed files with 33 additions and 7 deletions

View File

@@ -168,7 +168,7 @@ void fill_image(fz_context *ctx, UNUSED(fz_device *dev),
}
}
void parse_pdf(void *buf, size_t buf_len, document_t *doc) {
void parse_pdf(const void *buf, size_t buf_len, document_t *doc) {
if (buf == NULL) {
return;