Update dpf, make sure to remove idle callback on UI destructor

This commit is contained in:
falkTX 2021-09-13 11:01:10 +01:00
parent 743c8691b6
commit 11010b3f32
3 changed files with 8 additions and 2 deletions

2
dpf

@ -1 +1 @@
Subproject commit ccece16081c89ead759394994f7251092938837e Subproject commit 5618819a3c5d2f932b4d8b1d0422c1bd4b9d35ee

View File

@ -129,6 +129,11 @@ DistrhoUINekobi::DistrhoUINekobi()
addIdleCallback(this, 120); addIdleCallback(this, 120);
} }
DistrhoUINekobi::~DistrhoUINekobi()
{
removeIdleCallback(this);
}
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// DSP Callbacks // DSP Callbacks

View File

@ -1,6 +1,6 @@
/* /*
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others. * DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
* Copyright (C) 2013-2015 Filipe Coelho <falktx@falktx.com> * Copyright (C) 2013-2021 Filipe Coelho <falktx@falktx.com>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as * modify it under the terms of the GNU General Public License as
@ -42,6 +42,7 @@ class DistrhoUINekobi : public UI,
{ {
public: public:
DistrhoUINekobi(); DistrhoUINekobi();
~DistrhoUINekobi() override;
protected: protected:
// ------------------------------------------------------------------- // -------------------------------------------------------------------