TaskTree: Fix destruction of running task tree

Delete all storages that were created before.

Change-Id: I8cbeb571424086b77fa7b19611c5b3f6cc1f4db1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-11-22 15:21:45 +01:00
parent 3468cd20ca
commit dfd06ec175
4 changed files with 52 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ private:
void activateStorage(int id);
struct StorageData {
~StorageData();
StorageConstructor m_constructor = {};
StorageDestructor m_destructor = {};
QHash<int, void *> m_storageHash = {};