Skip to content

Commit

Permalink
Fix reference counting error in pdf_redact_image_filter_pixels
Browse files Browse the repository at this point in the history
Fixes the issue in:
pymupdf/PyMuPDF#3758
  • Loading branch information
ccxvii committed Oct 28, 2024
1 parent 4661cf8 commit e487b22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/pdf/pdf-clean.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,8 @@ pdf_redact_image_filter_pixels(fz_context *ctx, void *opaque, fz_matrix ctm, con
fz_rethrow(ctx);
return image;
}
return image;

return fz_keep_image(ctx, image);
}

/* Returns 0 if area does not intersect with any of our redactions.
Expand Down

0 comments on commit e487b22

Please sign in to comment.