Commit 3664d35b authored by David Faure's avatar David Faure
Browse files

Fix memory leak (reviewed and tested by Laurent)

parent 7f7ce037
Pipeline #24884 passed with stage
in 18 minutes and 6 seconds
...@@ -88,7 +88,13 @@ public: ...@@ -88,7 +88,13 @@ public:
QTabWidget *mTabWidget = nullptr; QTabWidget *mTabWidget = nullptr;
}; };
typedef QList<CollectionPropertiesPageFactory *> CollectionPropertiesPageFactoryList; class CollectionPropertiesPageFactoryList : public QList<CollectionPropertiesPageFactory *>
{
public:
~CollectionPropertiesPageFactoryList() {
qDeleteAll(*this);
}
};
Q_GLOBAL_STATIC(CollectionPropertiesPageFactoryList, s_pages) // NOLINT(readability-redundant-member-init) Q_GLOBAL_STATIC(CollectionPropertiesPageFactoryList, s_pages) // NOLINT(readability-redundant-member-init)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment