diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-10-04 22:21:25 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-10-04 22:21:25 +0200 |
commit | 5539fef9cea062c29e49a607fe673ceed4c54ba6 (patch) | |
tree | 0930936da24cd4627516948148a7f59181d4b54c | |
parent | a266e118c5ed4db6752a30546f0e33e7c6f4caf4 (diff) |
fixed few memleaks in ao spu
-rw-r--r-- | plugins/ao/eng_psf/eng_spu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/ao/eng_psf/eng_spu.c b/plugins/ao/eng_psf/eng_spu.c index dbda70ac..966fe870 100644 --- a/plugins/ao/eng_psf/eng_spu.c +++ b/plugins/ao/eng_psf/eng_spu.c @@ -263,7 +263,14 @@ int32 spu_gen(void *handle, int16 *buffer, uint32 samples) int32 spu_stop(void *handle) { - free (handle); + spu_synth_t *s = handle; + if (s) { + if (s->mips_cpu) { + SPUclose(s->mips_cpu); + free (s->mips_cpu); + } + free (s); + } return AO_SUCCESS; } |