From de3ee34fce1f7b6b106e5079a5261e1edb83e56d Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Tue, 27 Apr 2021 16:48:31 +0200 Subject: [PATCH] Fixed audio sink not deleting instance --- audio_sink/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/audio_sink/src/main.cpp b/audio_sink/src/main.cpp index 93385333..1d404a57 100644 --- a/audio_sink/src/main.cpp +++ b/audio_sink/src/main.cpp @@ -278,11 +278,11 @@ MOD_EXPORT void* _CREATE_INSTANCE_(std::string name) { return instance; } -MOD_EXPORT void _DELETE_INSTANCE_() { - config.disableAutoSave(); - config.save(); +MOD_EXPORT void _DELETE_INSTANCE_(void* instance) { + delete (AudioSinkModule*)instance; } MOD_EXPORT void _END_() { - + config.disableAutoSave(); + config.save(); } \ No newline at end of file