diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-15 19:49:16 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-15 19:49:16 +0000 |
commit | e6118ac1b13cc49f637861fccbc32a10c4ea1ea7 (patch) | |
tree | 4ccb1fb5adf96d7794872502ee975825f250054a /apps | |
parent | 3031a2480fe775df825de6674495d01ae2607d93 (diff) | |
download | mupdf-e6118ac1b13cc49f637861fccbc32a10c4ea1ea7.tar.xz |
Various Memsqueezing fixes.
Fixes for leaks (and SEGVs, division by zeros etc) seen when
Memsqueezing.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfdraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++]; |