From c4e383829b0ddbe272e8e2fe2ce718f5db181072 Mon Sep 17 00:00:00 2001 From: vosk Date: Thu, 28 Jan 2021 21:02:27 +0200 Subject: [PATCH] [GUI] - Fix leaking QObject --- src/Gui/CommandWindow.cpp | 2 +- src/Gui/SoFCColorBar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/CommandWindow.cpp b/src/Gui/CommandWindow.cpp index 1c953ce1fa..b87997ec93 100644 --- a/src/Gui/CommandWindow.cpp +++ b/src/Gui/CommandWindow.cpp @@ -370,7 +370,7 @@ class FilterStatusBar : public QObject // Q_OBJECT public: - FilterStatusBar(Action * action):QObject() {this->action = action;} + FilterStatusBar(Action * action):QObject(action) {this->action = action;} // virtual ~FilterStatusBar() {} protected: Action * action; diff --git a/src/Gui/SoFCColorBar.cpp b/src/Gui/SoFCColorBar.cpp index 6a3f3e21ea..4b80c9ac94 100644 --- a/src/Gui/SoFCColorBar.cpp +++ b/src/Gui/SoFCColorBar.cpp @@ -42,7 +42,7 @@ SO_NODE_ABSTRACT_SOURCE(SoFCColorBarBase) /*! Constructor. */ -SoFCColorBarBase::SoFCColorBarBase() +SoFCColorBarBase::SoFCColorBarBase(): _windowSize(0,0) { SO_NODE_CONSTRUCTOR(SoFCColorBarBase); }