From e6118ac1b13cc49f637861fccbc32a10c4ea1ea7 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 15 Dec 2011 19:49:16 +0000 Subject: Various Memsqueezing fixes. Fixes for leaks (and SEGVs, division by zeros etc) seen when Memsqueezing. --- apps/pdfdraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c index 1e71181e..fe93352c 100644 --- a/apps/pdfdraw.c +++ b/apps/pdfdraw.c @@ -369,8 +369,6 @@ int main(int argc, char **argv) fz_set_aa_level(ctx, alphabits); - glyphcache = fz_new_glyph_cache(ctx); - colorspace = fz_device_rgb; if (grayscale) colorspace = fz_device_gray; @@ -393,6 +391,8 @@ int main(int argc, char **argv) fz_try(ctx) { + glyphcache = fz_new_glyph_cache(ctx); + while (fz_optind < argc) { filename = argv[fz_optind++]; -- cgit v1.2.3