summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Block.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 21:11:49 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 21:11:49 +0100
commit7859da2568147cc06ea70992a1baed2ceaae619a (patch)
treee53f8f1b086afab4bbf4dbe0222239938091d90b /src/server/LV2Block.cpp
parentafffecae1c567bac1622d4f168ff7c3828ec3b51 (diff)
downloadingen-7859da2568147cc06ea70992a1baed2ceaae619a.tar.gz
ingen-7859da2568147cc06ea70992a1baed2ceaae619a.tar.bz2
ingen-7859da2568147cc06ea70992a1baed2ceaae619a.zip
Fix use of virtual functions in destructors
Diffstat (limited to 'src/server/LV2Block.cpp')
-rw-r--r--src/server/LV2Block.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp
index 17b681f7..124390ff 100644
--- a/src/server/LV2Block.cpp
+++ b/src/server/LV2Block.cpp
@@ -66,6 +66,10 @@ LV2Block::LV2Block(LV2Plugin* plugin,
LV2Block::~LV2Block()
{
+ if (_activated) {
+ LV2Block::deactivate();
+ }
+
// Explicitly drop instances first to prevent reference cycles
drop_instances(_instances);
drop_instances(_prepared_instances);