comparison src/alac/plugin.c @ 70:31799ddaf2e9 trunk

[svn] - fix memory leaks
author nenolod
date Sat, 30 Sep 2006 23:25:06 -0700
parents 08c9353a9bb3
children 5b0619b09745
comparison
equal deleted inserted replaced
69:08c9353a9bb3 70:31799ddaf2e9
227 /* write */ 227 /* write */
228 bytes_read += outputBytes; 228 bytes_read += outputBytes;
229 229
230 produce_audio(alac_ip.output->written_time(), FMT_S16_LE, demux_res->num_channels, outputBytes, pDestBuffer, &going); 230 produce_audio(alac_ip.output->written_time(), FMT_S16_LE, demux_res->num_channels, outputBytes, pDestBuffer, &going);
231 } 231 }
232
233 free(buffer);
234 free(pDestBuffer);
232 } 235 }
233 236
234 static void init_sound_converter(demux_res_t *demux_res) 237 static void init_sound_converter(demux_res_t *demux_res)
235 { 238 {
236 alac = create_alac(demux_res->sample_size, demux_res->num_channels); 239 alac = create_alac(demux_res->sample_size, demux_res->num_channels);