summaryrefslogtreecommitdiffstats
path: root/src/server/BlockImpl.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/BlockImpl.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/BlockImpl.cpp')
-rw-r--r--src/server/BlockImpl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/BlockImpl.cpp b/src/server/BlockImpl.cpp
index d4d60e5c..ba0bdc77 100644
--- a/src/server/BlockImpl.cpp
+++ b/src/server/BlockImpl.cpp
@@ -54,12 +54,10 @@ BlockImpl::BlockImpl(PluginImpl* plugin,
BlockImpl::~BlockImpl()
{
- if (_activated) {
- deactivate();
- }
+ assert(!_activated);
if (is_linked()) {
- parent_graph()->remove_block(*this);
+ ((GraphImpl*)_parent)->remove_block(*this);
}
}