fix: improve processor close order

This commit is contained in:
TinyOh 2019-03-02 10:31:15 +08:00
parent f744fa06d5
commit a5b337b50f

View File

@ -86,6 +86,7 @@ Synthetic::Synthetic(API *api, CalibrationModel calib_model)
Synthetic::~Synthetic() { Synthetic::~Synthetic() {
VLOG(2) << __func__; VLOG(2) << __func__;
processors_.clear();
if (processor_) { if (processor_) {
processor_->Deactivate(true); processor_->Deactivate(true);
processor_ = nullptr; processor_ = nullptr;