[GUI] - Fix leaking QObject

This commit is contained in:
vosk
2021-01-28 21:02:27 +02:00
committed by wmayer
parent 542bf23cb0
commit c4e383829b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -42,7 +42,7 @@ SO_NODE_ABSTRACT_SOURCE(SoFCColorBarBase)
/*!
Constructor.
*/
SoFCColorBarBase::SoFCColorBarBase()
SoFCColorBarBase::SoFCColorBarBase(): _windowSize(0,0)
{
SO_NODE_CONSTRUCTOR(SoFCColorBarBase);
}