Actually fix the leak instead of crashing

This commit is contained in:
Sergio Martins
2019-08-13 22:27:54 +01:00
parent ae3518bcae
commit 8ebf7aa085

View File

@@ -40,6 +40,10 @@ class Config::Private
public: public:
Private() Private()
: m_frameworkWidgetFactory(new DefaultWidgetFactory()) : m_frameworkWidgetFactory(new DefaultWidgetFactory())
{
}
~Private()
{ {
delete m_frameworkWidgetFactory; delete m_frameworkWidgetFactory;
} }