diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-05-05 11:59:31 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-05-05 12:34:34 (GMT) |
commit | 6bc32600d2367e78ddc39dd93694e01d4d75958d (patch) | |
tree | 7489af88468c6dcf961cfb6a44bce9055c9b2e91 /src/gui/dialogs | |
parent | 260212083c19e76e8e53dfe2ae44de70003769d7 (diff) | |
download | Qt-6bc32600d2367e78ddc39dd93694e01d4d75958d.zip Qt-6bc32600d2367e78ddc39dd93694e01d4d75958d.tar.gz Qt-6bc32600d2367e78ddc39dd93694e01d4d75958d.tar.bz2 |
Don't leak QVistaHelper from QWizard
The default QObject constructor was not called, meaning the vista helper
was never registered as a child of the QWizard (and therefore never
deleted when the QWizard was destructed).
Task-number: QTBUG-10203
Reviewed-by: olivier
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/qwizard_win.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/dialogs/qwizard_win.cpp b/src/gui/dialogs/qwizard_win.cpp index 1390b21..e406cba 100644 --- a/src/gui/dialogs/qwizard_win.cpp +++ b/src/gui/dialogs/qwizard_win.cpp @@ -237,7 +237,8 @@ void QVistaBackButton::paintEvent(QPaintEvent *) */ QVistaHelper::QVistaHelper(QWizard *wizard) - : pressed(false) + : QObject(wizard) + , pressed(false) , wizard(wizard) , backButton_(0) { |