diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-14 01:05:31 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-14 01:05:31 +0000 |
commit | 3f74fb638182f6fa14c7d7bea970e4837be629da (patch) | |
tree | 86f98f4fb55ade3f1f88aab98a4d94a4c5f1bbe1 /fitz | |
parent | c5ac32b538ff875cb979d4c436271acc426b66a8 (diff) | |
download | mupdf-3f74fb638182f6fa14c7d7bea970e4837be629da.tar.xz |
Fix memory leak in image_tiff
When we have finished replacing tiff->samples, free the old samples
block. Taken from Sumatra.patch - many thanks.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/image_tiff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fitz/image_tiff.c b/fitz/image_tiff.c index ffd0ea88..de4c0732 100644 --- a/fitz/image_tiff.c +++ b/fitz/image_tiff.c @@ -313,6 +313,7 @@ fz_expand_tiff_colormap(struct tiff *tiff) tiff->samplesperpixel += 2; tiff->bitspersample = 8; tiff->stride = stride; + fz_free(tiff->ctx, tiff->samples); tiff->samples = samples; } |