完善后端析构逻辑以及优化日志性能

This commit is contained in:
2025-09-21 18:53:48 +08:00
parent f82af9201a
commit b1818e8fce
6 changed files with 161 additions and 272 deletions
+9 -3
View File
@@ -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;
};