diff --git a/src/client/clientMonitor.cpp b/src/client/clientMonitor.cpp index c5dd04d..2a7c321 100644 --- a/src/client/clientMonitor.cpp +++ b/src/client/clientMonitor.cpp @@ -126,6 +126,9 @@ struct Monitor::Impl : public pva::MonitorRequester, pvd::Status sts(operation->start()); if(sts.isSuccess()) { started = true; + /* storing raw pointer to operation, which is expected + * to outlive our 'op'. + */ last.attach(operation); } else { event.message = sts.getMessage();