summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2004-07-14 13:00:57 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2004-07-14 13:00:57 +0000
commit75cb7a7b2c7caa45c3e57686bce45c8e476d4d2a (patch)
tree305b5334ec44798e5510d37cf14821ed61c145aa
parentc020831f95f2c7983513f9547efac8dc38dc667a (diff)
Memory leak fix + Comment inserted in codestream: "Created by OpenJPEG version 0.9"
-rw-r--r--codec/image_to_j2k.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index 56508c11..d07f23e4 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -300,7 +300,7 @@ int main(int argc, char **argv)
Dim[1] = 0;
TX0 = 0;
TY0 = 0;
- cp.comment = NULL;
+ cp.comment = "Created by OpenJPEG version 0.9";
cp.disto_alloc = 0;
cp.fixed_alloc = 0;
cp.fixed_quality = 0; //add fixed_quality
@@ -876,6 +876,7 @@ int main(int argc, char **argv)
}
/* Free memory */
+ free(img.comps);
free(cp_init.tcps);
if (tcp_init->numlayers > 9) free(cp.matrice);
for (tileno = 0; tileno < cp.tw * cp.th; tileno++)