From 8ebf7aa085aefab0af749857880d542cadd8a4e0 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Tue, 13 Aug 2019 22:27:54 +0100 Subject: [PATCH] Actually fix the leak instead of crashing --- src/Config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Config.cpp b/src/Config.cpp index e5532883..9b171743 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -40,6 +40,10 @@ class Config::Private public: Private() : m_frameworkWidgetFactory(new DefaultWidgetFactory()) + { + } + + ~Private() { delete m_frameworkWidgetFactory; }