X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FEvents.cc;fp=senf%2FPPI%2FEvents.cc;h=f74a3291d525f301c2518280662931a9bead7a8b;hb=69b25a4904fa86324aedc7147502255ce4117885;hp=7aa02989e50ed191fcd3a4f02da811d99c86d058;hpb=66101f618adf223cf360dd891f82f6eae37930cb;p=senf.git diff --git a/senf/PPI/Events.cc b/senf/PPI/Events.cc index 7aa0298..f74a329 100644 --- a/senf/PPI/Events.cc +++ b/senf/PPI/Events.cc @@ -28,6 +28,7 @@ // Custom includes #include "Route.hh" +#include "EventManager.hh" //#include "Events.mpp" #define prefix_ @@ -36,6 +37,12 @@ /////////////////////////////////////////////////////////////////////////// // senf::ppi::EventDescriptor +prefix_ senf::ppi::EventDescriptor::~EventDescriptor() +{ + if (binding_) + binding_->manager().destroyEvent(*this); +} + prefix_ void senf::ppi::EventDescriptor::notifyUnthrottle() { Routes::const_iterator i (routes_.begin());