fix: plugin maybe nullptr deletions

This commit is contained in:
2 * r + 2 * t 2026-03-19 22:59:38 +11:00
parent 5e4df661a0
commit bf90d38a23
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,7 @@ protected:
virtual void process() = 0; virtual void process() = 0;
private: private:
QTimer* m_timer; QTimer* m_timer = nullptr;
}; };
class AudioProvider : public Service { class AudioProvider : public Service {

View file

@ -19,8 +19,10 @@ BeatProcessor::~BeatProcessor() {
if (m_in) { if (m_in) {
del_fvec(m_in); del_fvec(m_in);
} }
if (m_out) {
del_fvec(m_out); del_fvec(m_out);
} }
}
void BeatProcessor::process() { void BeatProcessor::process() {
if (!m_tempo || !m_in) { if (!m_tempo || !m_in) {