Changeset 3063:955233719a84 in roaraudio for libroardsp/transcode_speex.c
- Timestamp:
- 12/26/09 20:36:31 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/transcode_speex.c
r2974 r3063 33 33 34 34 int roar_xcoder_speex_init (struct roar_xcoder * state) { 35 struct roar_xcoder_speex * self = malloc(sizeof(struct roar_xcoder_speex));35 struct roar_xcoder_speex * self = roar_mm_malloc(sizeof(struct roar_xcoder_speex)); 36 36 struct roar_audio_info * info = &(state->info.pcm); 37 37 int tmp; … … 44 44 // curruntly only 16 bit mode is supported 45 45 if ( info->bits != 16 ) { 46 free(self);46 roar_mm_free(self); 47 47 return -1; 48 48 } … … 53 53 case 2: self->stereo = 1; break; 54 54 default: 55 free(self);55 roar_mm_free(self); 56 56 return -1; 57 57 } … … 140 140 speex_bits_destroy(&(self->bits)); 141 141 142 free(self);142 roar_mm_free(self); 143 143 144 144 return 0;
Note: See TracChangeset
for help on using the changeset viewer.