From 11010b3f3239f357b9ea028a944a084d6b283fb0 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 13 Sep 2021 11:01:10 +0100 Subject: [PATCH] Update dpf, make sure to remove idle callback on UI destructor --- dpf | 2 +- plugins/Nekobi/DistrhoUINekobi.cpp | 5 +++++ plugins/Nekobi/DistrhoUINekobi.hpp | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dpf b/dpf index ccece16..5618819 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit ccece16081c89ead759394994f7251092938837e +Subproject commit 5618819a3c5d2f932b4d8b1d0422c1bd4b9d35ee diff --git a/plugins/Nekobi/DistrhoUINekobi.cpp b/plugins/Nekobi/DistrhoUINekobi.cpp index 670dfce..4c53224 100644 --- a/plugins/Nekobi/DistrhoUINekobi.cpp +++ b/plugins/Nekobi/DistrhoUINekobi.cpp @@ -129,6 +129,11 @@ DistrhoUINekobi::DistrhoUINekobi() addIdleCallback(this, 120); } +DistrhoUINekobi::~DistrhoUINekobi() +{ + removeIdleCallback(this); +} + // ----------------------------------------------------------------------- // DSP Callbacks diff --git a/plugins/Nekobi/DistrhoUINekobi.hpp b/plugins/Nekobi/DistrhoUINekobi.hpp index 7cfeb5c..8106308 100644 --- a/plugins/Nekobi/DistrhoUINekobi.hpp +++ b/plugins/Nekobi/DistrhoUINekobi.hpp @@ -1,6 +1,6 @@ /* * DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others. - * Copyright (C) 2013-2015 Filipe Coelho + * Copyright (C) 2013-2021 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -42,6 +42,7 @@ class DistrhoUINekobi : public UI, { public: DistrhoUINekobi(); + ~DistrhoUINekobi() override; protected: // -------------------------------------------------------------------