diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-08 15:59:17 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-08 15:59:17 +0000 |
| commit | 9832c911b36f25f228e391c6da876f79b664af0e (patch) | |
| tree | 076c1fb815e638ca8ac4d6f287865e9c8e547b21 /src/lib/openjpip/channel_manager.c | |
| parent | 23f5eeec20e853c5534df735d9263befda9b0135 (diff) | |
[trunk] Update JPIP (FolderReorgProposal task)
This commit does three things:
- Use opj_malloc/calloc/free instead of the default C ones.
- Update JPIP API to start using cio _v2 API
- Create a new opj_jpip_compress which is the replacement for image_to_j2k -jpip
Update issue 177
Diffstat (limited to 'src/lib/openjpip/channel_manager.c')
| -rw-r--r-- | src/lib/openjpip/channel_manager.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/openjpip/channel_manager.c b/src/lib/openjpip/channel_manager.c index 8060d680..d422b396 100644 --- a/src/lib/openjpip/channel_manager.c +++ b/src/lib/openjpip/channel_manager.c @@ -49,7 +49,7 @@ channellist_param_t * gene_channellist(void) { channellist_param_t *channellist; - channellist = (channellist_param_t *)malloc( sizeof(channellist_param_t)); + channellist = (channellist_param_t *)opj_malloc( sizeof(channellist_param_t)); channellist->first = NULL; channellist->last = NULL; @@ -68,7 +68,7 @@ channel_param_t * gene_channel( query_param_t query_param, auxtrans_param_t auxt return NULL; } - channel = (channel_param_t *)malloc( sizeof(channel_param_t)); + channel = (channel_param_t *)opj_malloc( sizeof(channel_param_t)); channel->cachemodel = cachemodel; /* set channel ID and get present time */ @@ -130,7 +130,7 @@ void delete_channel( channel_param_t **channel, channellist_param_t *channellist #ifndef SERVER fprintf( logstream, "local log: channel: %s deleted\n", (*channel)->cid); #endif - free(*channel); + opj_free(*channel); } void delete_channellist( channellist_param_t **channellist) @@ -143,10 +143,10 @@ void delete_channellist( channellist_param_t **channellist) #ifndef SERVER fprintf( logstream, "local log: channel %s deleted!\n", channelPtr->cid); #endif - free(channelPtr); + opj_free(channelPtr); channelPtr=channelNext; } - free( *channellist); + opj_free( *channellist); } void print_allchannel( channellist_param_t *channellist) |
