summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/sys/Dispatcher.cpp')
-rw-r--r--cpp/src/qpid/sys/Dispatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/Dispatcher.cpp b/cpp/src/qpid/sys/Dispatcher.cpp
index 3f901737fd..02a62c8e66 100644
--- a/cpp/src/qpid/sys/Dispatcher.cpp
+++ b/cpp/src/qpid/sys/Dispatcher.cpp
@@ -339,7 +339,7 @@ void DispatchHandle::doDelete() {
}
}
// If we're not then do it right away
- deferDelete();
+ delete this;
}
void DispatchHandle::processEvent(Poller::EventType type) {
@@ -433,7 +433,7 @@ void DispatchHandle::processEvent(Poller::EventType type) {
break;
}
}
- deferDelete();
+ delete this;
}
}}