完善后端析构逻辑以及优化日志性能
This commit is contained in:
@@ -20,10 +20,16 @@ public:
|
||||
|
||||
}
|
||||
void cleanup() override {
|
||||
|
||||
if (_detProcess != nullptr){
|
||||
delete _detProcess;
|
||||
_detProcess = nullptr;
|
||||
}
|
||||
}
|
||||
~Backend() {
|
||||
delete _detProcess;
|
||||
if (_detProcess != nullptr) {
|
||||
delete _detProcess;
|
||||
_detProcess = nullptr;
|
||||
}
|
||||
}
|
||||
bool excuteCliCommand(const QString& command) {
|
||||
return _detProcess->_cliManager->cliCommand(command);
|
||||
@@ -33,7 +39,7 @@ public:
|
||||
}
|
||||
private:
|
||||
bool initOnce = false;
|
||||
detProcess* _detProcess;
|
||||
detProcess* _detProcess = nullptr;
|
||||
qtFuncBridge* bridge = nullptr;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user