fixed bug from previous revision
This commit is contained in:
parent
75cb7a7b2c
commit
0e9da05873
|
@ -300,7 +300,7 @@ int main(int argc, char **argv)
|
|||
Dim[1] = 0;
|
||||
TX0 = 0;
|
||||
TY0 = 0;
|
||||
cp.comment = "Created by OpenJPEG version 0.9";
|
||||
cp.comment = NULL;
|
||||
cp.disto_alloc = 0;
|
||||
cp.fixed_alloc = 0;
|
||||
cp.fixed_quality = 0; //add fixed_quality
|
||||
|
@ -850,7 +850,6 @@ int main(int argc, char **argv)
|
|||
}
|
||||
fwrite(outbuf, 1, len, f);
|
||||
free(outbuf);
|
||||
free(jp2_struct->comps);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
@ -875,14 +874,6 @@ 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++)
|
||||
free(cp.tcps[tileno].tccps);
|
||||
free(cp.tcps);
|
||||
|
||||
system("pause");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue