X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg2000.cxx;h=4611a60aeba8927373739242cabd7f61cef2625b;hb=0fb6716cd0eff6a09b845e3ae1601dce2c9d9718;hp=6f33cb7b212754eef4cfd0a89e927ddb3f60a3ce;hpb=83d626ec3d3111a6d14586246b6e2dda56f0ab86;p=gdcm.git diff --git a/src/gdcmJpeg2000.cxx b/src/gdcmJpeg2000.cxx index 6f33cb7b..4611a60a 100644 --- a/src/gdcmJpeg2000.cxx +++ b/src/gdcmJpeg2000.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmJpeg2000.cxx,v $ Language: C++ - Date: $Date: 2006/01/27 10:01:34 $ - Version: $Revision: 1.40 $ + Date: $Date: 2006/02/07 16:05:13 $ + Version: $Revision: 1.41 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -84,9 +84,9 @@ bool gdcm_read_JPEG2000_file (void* raw, char *inputdata, size_t inputlength) { opj_dparameters_t parameters; /* decompression parameters */ opj_event_mgr_t event_mgr; /* event manager */ - opj_image_t *image = NULL; - opj_dinfo_t* dinfo = NULL; /* handle to a decompressor */ - opj_cio_t *cio = NULL; + opj_image_t *image; + opj_dinfo_t* dinfo; /* handle to a decompressor */ + opj_cio_t *cio; unsigned char *src = (unsigned char*)inputdata; int file_length = inputlength; @@ -136,8 +136,6 @@ bool gdcm_read_JPEG2000_file (void* raw, char *inputdata, size_t inputlength) /* free the memory containing the code-stream */ delete[] src; //FIXME - src = NULL; - // Copy buffer for (int compno = 0; compno < image->numcomps; compno++)