logic: fixed crash when renaming the temp storage while it is still used

This commit is contained in:
mlangkabel
2018-07-10 14:14:48 +02:00
parent 58eb994a60
commit ee3bf41a27
9 changed files with 37 additions and 33 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ class TaskCleanStorage
{
public:
TaskCleanStorage(
PersistentStorage* storage,
std::weak_ptr<PersistentStorage> storage,
const std::vector<FilePath>& filePaths,
bool clearAllErrors
);
@@ -26,7 +26,7 @@ private:
void doExit(std::shared_ptr<Blackboard> blackboard) override;
void doReset(std::shared_ptr<Blackboard> blackboard) override;
PersistentStorage* m_storage;
std::weak_ptr<PersistentStorage> m_storage;
std::vector<FilePath> m_filePaths;
bool m_clearAllErrors;