diff options
Diffstat (limited to 'common/action_processor.cc')
-rw-r--r-- | common/action_processor.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/action_processor.cc b/common/action_processor.cc index 2618e4e7..3549e080 100644 --- a/common/action_processor.cc +++ b/common/action_processor.cc @@ -60,6 +60,10 @@ void ActionProcessor::StopProcessing() { << (suspended_ ? " while suspended" : ""); current_action_ = nullptr; suspended_ = false; + // Delete all the actions before calling the delegate. + for (auto action : actions_) + action->SetProcessor(nullptr); + actions_.clear(); if (delegate_) delegate_->ProcessingStopped(this); } |