X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2Fdetail%2FEventBinding.cc;h=e1d5a4ff2e4c658ba74b092115a984fc9606fed7;hb=78a6e233083efa63a9cd0684a92abc64202a9ee7;hp=b5823679de357a6fba0eb615cee84ae05160274a;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/PPI/detail/EventBinding.cc b/senf/PPI/detail/EventBinding.cc index b582367..e1d5a4f 100644 --- a/senf/PPI/detail/EventBinding.cc +++ b/senf/PPI/detail/EventBinding.cc @@ -27,12 +27,20 @@ //#include "EventBinding.ih" // Custom includes -#include "../EventManager.hh" +#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 ...