diff options
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); } } |