[trunk] move to the new API for function opj_stream_destroy. Use now opj_stream_destr...
[openjpeg.git] / tests / unit / testempty1.c
index add522a6f3397fa1ee14b1e6028bad326eaf0765..3273648524147a5753f7e9efad90b20dfc898a0e 100644 (file)
@@ -99,9 +99,9 @@ int main(int argc, char *argv[])
       }
     }
 
-               /* catch events using our callbacks and give a local context */         \r
-               opj_set_info_handler(l_codec, info_callback,00);\r
-               opj_set_warning_handler(l_codec, warning_callback,00);\r
+               /* catch events using our callbacks and give a local context */         
+               opj_set_info_handler(l_codec, info_callback,00);
+               opj_set_warning_handler(l_codec, warning_callback,00);
                opj_set_error_handler(l_codec, error_callback,00);
 
   l_codec = opj_create_compress(OPJ_CODEC_J2K);
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
   bSuccess = opj_end_compress(l_codec, l_stream);
   assert( bSuccess );
 
-  opj_stream_destroy(l_stream);
+  opj_stream_destroy_v3(l_stream);
   fclose(f);
 
   opj_destroy_codec(l_codec);