diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 21:11:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 21:11:49 +0100 |
commit | 7859da2568147cc06ea70992a1baed2ceaae619a (patch) | |
tree | e53f8f1b086afab4bbf4dbe0222239938091d90b /src/server/BlockImpl.cpp | |
parent | afffecae1c567bac1622d4f168ff7c3828ec3b51 (diff) | |
download | ingen-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.cpp | 6 |
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); } } |