projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f968a70
)
[1.5] Import patch suggested in bug #241
author
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Thu, 26 Sep 2013 09:24:55 +0000
(09:24 +0000)
committer
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Thu, 26 Sep 2013 09:24:55 +0000
(09:24 +0000)
libopenjpeg/image.c
patch
|
blob
|
history
diff --git
a/libopenjpeg/image.c
b/libopenjpeg/image.c
index a4d2c010a56d1ab6863c60b5e1b604f92d6b9829..579fd73d71824f0f8e6127e2ea205de5e62e294e 100644
(file)
--- a/
libopenjpeg/image.c
+++ b/
libopenjpeg/image.c
@@
-40,7
+40,7
@@
opj_image_t* OPJ_CALLCONV opj_image_create(int numcmpts, opj_image_cmptparm_t *c
image->color_space = clrspc;
image->numcomps = numcmpts;
/* allocate memory for the per-component information */
- image->comps = (opj_image_comp_t*)opj_
malloc(
image->numcomps * sizeof(opj_image_comp_t));
+ image->comps = (opj_image_comp_t*)opj_
calloc(1,
image->numcomps * sizeof(opj_image_comp_t));
if(!image->comps) {
fprintf(stderr,"Unable to allocate memory for image.\n");
opj_image_destroy(image);