ref: 70a3ad1514050d5babcc18fb1bd327db1cfbfdc8
parent: 56d7948b4d9f3825a20f0cb6cc26a0a3b6ae34f1
author: Ralph Giles <giles@ghostscript.com>
date: Wed Jul 15 21:32:29 EDT 2009
Remove a specious comment. Originally I thought we might need to access pages in random order, but I don't think this is necessary.
--- a/jbig2_page.c
+++ b/jbig2_page.c
@@ -80,12 +80,11 @@
index = ctx->current_page;
while (ctx->pages[index].state != JBIG2_PAGE_FREE) {
index++;
- if (index >= ctx->max_page_index) { /* FIXME: should also look for freed pages? */
+ if (index >= ctx->max_page_index) {
/* grow the list */
ctx->pages = jbig2_realloc(ctx->allocator, ctx->pages,
(ctx->max_page_index <<= 2) * sizeof(Jbig2Page));
for (j=index; j < ctx->max_page_index; j++) {
- /* note to raph: and look, it gets worse! */
ctx->pages[j].state = JBIG2_PAGE_FREE;
ctx->pages[j].number = 0;
ctx->pages[j].image = NULL;