summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2005-09-13 14:11:41 +0000
committerAntonin Descampe <antonin@gmail.com>2005-09-13 14:11:41 +0000
commitcd98a4f7408930e3673b4d3311c29dd2ea25dc1a (patch)
treeb1d7dc93be9ceb0640fe7846ae7d1190305341dc /codec
parente25e7e767e7195d06173be0a88b4225612c026f5 (diff)
bug fixed when freeing the memory allocated if ppm-marker or ppt-marker is used
Diffstat (limited to 'codec')
-rw-r--r--codec/image_to_j2k.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index e64616ab..9be55998 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -740,6 +740,7 @@ int main(int argc, char **argv)
/* Initialization for PPM marker */
cp.ppm = 0;
cp.ppm_data = NULL;
+ cp.ppm_data_first = NULL;
cp.ppm_previous = 0;
cp.ppm_store = 0;
@@ -761,6 +762,7 @@ int main(int argc, char **argv)
tcp->mct = img.numcomps == 3 ? 1 : 0;
tcp->ppt = 0;
tcp->ppt_data = NULL;
+ tcp->ppt_data_first = NULL;
tcp->ppt_store = 0;
numpocs_tile = 0;