diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-06-27 14:50:24 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-06-27 13:30:07 +0000 |
commit | 51c798b5176b225d3bf90d9c97ff85dfc3ee4fa3 (patch) | |
tree | 34586532c01faa90bf72ddbae0415d122ebbd89e | |
parent | 3a64f67f76a6e17ebb1c3fd2174c172c69cb519f (diff) | |
download | qt-creator-51c798b5176b225d3bf90d9c97ff85dfc3ee4fa3.tar.gz |
FancyTabBar: Don't leak fancy tabs on shutdown
Detected by memory analyzer.
Change-Id: I9709dd1f1c60d3d19939e66779bba7b17536a175
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/coreplugin/fancytabwidget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/fancytabwidget.h b/src/plugins/coreplugin/fancytabwidget.h index 8c5544665d..1b227f51c0 100644 --- a/src/plugins/coreplugin/fancytabwidget.h +++ b/src/plugins/coreplugin/fancytabwidget.h @@ -49,8 +49,9 @@ class FancyTab : public QObject Q_PROPERTY(qreal fader READ fader WRITE setFader) public: - FancyTab(QWidget *tabbar) - : m_tabbar(tabbar) + FancyTab(QWidget *parentTabBar) + : QObject(parentTabBar) + , m_tabbar(parentTabBar) { m_animator.setPropertyName("fader"); m_animator.setTargetObject(this); |