修复内存泄露

This commit is contained in:
Nanako 2024-05-26 01:13:28 +08:00
parent 6a7e99a3f8
commit 266d45834c
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,8 @@
#include "thread_message/thread_message_hubs.h"
mixer_track::~mixer_track() {
delete channel_interface_;
channel_interface_ = nullptr;
}
void mixer_track::init() {

View File

@ -51,7 +51,6 @@ public:
multicast_delegate<plugin_host*> on_add_effect;
multicast_delegate<plugin_host*> on_remove_effect;
private:
void add_effect_internal(plugin_host* in_effect);
const mixer_track_type type_;
channel_interface* channel_interface_ = nullptr;
};