Mercurial > SDL_sound_CoreAudio
comparison decoders/mod.c @ 92:6252979e2453
Fixed a memory leak in the close() method.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 01 Oct 2001 09:12:01 +0000 |
parents | 40006625142a |
children | 230f75fac1d1 |
comparison
equal
deleted
inserted
replaced
91:fedde865563d | 92:6252979e2453 |
---|---|
244 { | 244 { |
245 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; | 245 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; |
246 mod_t *m = (mod_t *) internal->decoder_private; | 246 mod_t *m = (mod_t *) internal->decoder_private; |
247 | 247 |
248 Player_Free(m->module); | 248 Player_Free(m->module); |
249 free(m); | |
249 } /* MOD_close */ | 250 } /* MOD_close */ |
250 | 251 |
251 | 252 |
252 static Uint32 MOD_read(Sound_Sample *sample) | 253 static Uint32 MOD_read(Sound_Sample *sample) |
253 { | 254 { |