Fixed audio sink not deleting instance

This commit is contained in:
Ryzerth 2021-04-27 16:48:31 +02:00
parent 7481f0432b
commit de3ee34fce

View File

@ -278,11 +278,11 @@ MOD_EXPORT void* _CREATE_INSTANCE_(std::string name) {
return instance; return instance;
} }
MOD_EXPORT void _DELETE_INSTANCE_() { MOD_EXPORT void _DELETE_INSTANCE_(void* instance) {
config.disableAutoSave(); delete (AudioSinkModule*)instance;
config.save();
} }
MOD_EXPORT void _END_() { MOD_EXPORT void _END_() {
config.disableAutoSave();
config.save();
} }