diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-10-12 14:42:21 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-10-12 14:42:21 +0000 |
| commit | 27e255fa75b7b9e989de3ec379c9de2b7462983b (patch) | |
| tree | 1faaf8bcf5427d81629d9f8e92e678b20f4c904e /libopenjpeg/openjpeg.h | |
| parent | 195190b6121e53ee754132adc073409433482fde (diff) | |
[trunk] WIP: correct some memory leaks in applications functions
Diffstat (limited to 'libopenjpeg/openjpeg.h')
| -rw-r--r-- | libopenjpeg/openjpeg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libopenjpeg/openjpeg.h b/libopenjpeg/openjpeg.h index 34ad7ab8..0c59889c 100644 --- a/libopenjpeg/openjpeg.h +++ b/libopenjpeg/openjpeg.h @@ -1262,6 +1262,7 @@ Destroy Codestream information after compression or decompression */ OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info(opj_codestream_info_t *cstr_info); +OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info_v2(opj_codestream_info_v2_t **cstr_info); /** * Decodes an image header. @@ -1274,7 +1275,7 @@ OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info(opj_codestream_info_t *cstr_info */ OPJ_API opj_bool OPJ_CALLCONV opj_read_header ( opj_stream_t *p_cio, opj_codec_t *p_codec, - opj_image_t *p_image); + opj_image_t **p_image); /** * Destroy a decompressor handle @@ -1386,6 +1387,9 @@ OPJ_API opj_codestream_info_v2_t* OPJ_CALLCONV opj_get_cstr_info(opj_codec_t *p_ */ OPJ_API opj_codestream_index_t * OPJ_CALLCONV opj_get_cstr_index(opj_codec_t *p_codec); +OPJ_API void OPJ_CALLCONV opj_destroy_cstr_index(opj_codestream_index_t **p_cstr_index); + + /** * Get the JP2 file information from the codec FIXME * |
