From 43beeb7291d4c3290bc87f6aa55941dbfcd2d2bd Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 4 Oct 2010 22:29:50 +0200 Subject: fixed memleaks in ao ssf --- plugins/ao/eng_ssf/eng_ssf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins/ao') diff --git a/plugins/ao/eng_ssf/eng_ssf.c b/plugins/ao/eng_ssf/eng_ssf.c index 18ba0e42..9b1b5714 100644 --- a/plugins/ao/eng_ssf/eng_ssf.c +++ b/plugins/ao/eng_ssf/eng_ssf.c @@ -295,7 +295,16 @@ int32 ssf_gen(void *handle, int16 *buffer, uint32 samples) int32 ssf_stop(void *handle) { ssf_synth_t *s = handle; - sat_hw_free (s->cpu); + if (s) { + if (s->c) { + free (s->c); + } + if (s->cpu) { + sat_hw_free (s->cpu); + free (s->cpu); + } + free (s); + } return AO_SUCCESS; } -- cgit v1.2.3