From 8a77674efc275d113cfe319576eaca655de26a77 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 28 Apr 2014 06:35:40 +0200 Subject: [PATCH] Cleanup rarch_deinit_dsp_filter --- driver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/driver.c b/driver.c index 7f01640470..65df7d086f 100644 --- a/driver.c +++ b/driver.c @@ -1025,11 +1025,10 @@ error: void rarch_deinit_dsp_filter(void) { - if (g_extern.audio_data.dsp_lib && g_extern.audio_data.dsp_plugin) - { + if (g_extern.audio_data.dsp_plugin && g_extern.audio_data.dsp_plugin->free) g_extern.audio_data.dsp_plugin->free(g_extern.audio_data.dsp_handle); + if (g_extern.audio_data.dsp_lib) dylib_close(g_extern.audio_data.dsp_lib); - } g_extern.audio_data.dsp_handle = NULL; g_extern.audio_data.dsp_plugin = NULL; }