Fix double free in document_has_redactions().
authorTor Andersson <[email protected]>
Wed, 11 Aug 2021 14:42:52 +0000 (16:42 +0200)
committerTor Andersson <[email protected]>
Wed, 11 Aug 2021 14:50:34 +0000 (16:50 +0200)
platform/gl/gl-annotate.c

index 09014fae6531e9c4c8adec464035fb2b48d92498..f9d28f8f4f7e5cd52dfbfcac7479e2105324db7e 100644 (file)
@@ -878,7 +878,6 @@ document_has_redactions(void)
                        {
                                if (pdf_annot_type(ctx, annot) == PDF_ANNOT_REDACT)
                                {
-                                       fz_drop_page(ctx, (fz_page *)page);
                                        has_redact = 1;
                                        break;
                                }