X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2Fdetail%2FEventBinding.cc;h=e1d5a4ff2e4c658ba74b092115a984fc9606fed7;hb=78a6e233083efa63a9cd0684a92abc64202a9ee7;hp=65aa7005456ef775482d8431a77adcccebbfcb20;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/PPI/detail/EventBinding.cc b/senf/PPI/detail/EventBinding.cc index 65aa700..e1d5a4f 100644 --- a/senf/PPI/detail/EventBinding.cc +++ b/senf/PPI/detail/EventBinding.cc @@ -28,11 +28,19 @@ // Custom includes #include +#include //#include "EventBinding.mpp" #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// +prefix_ senf::ppi::detail::EventBindingBase::~EventBindingBase() +{ + descriptor_->enabled(false); + module().unregisterEvent(*descriptor_); + descriptor_->binding_ = 0; +} + prefix_ void senf::ppi::detail::EventBindingBase::eventTime(ClockService::clock_type time) { // It's hard to make this inline because of a circular header dependency ...