summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2011-07-28 12:14:10 (GMT)
committermread <qt-info@nokia.com>2011-07-28 12:14:10 (GMT)
commit5679d966b396523a1d555a4029e7da05515be2fa (patch)
treec26bd801499d75ab0a944f1056f3f9d37f4ca15b /src/gui/widgets
parentf45e299f7fa7856bcdb9d63bb7ee4d25e5f9f455 (diff)
downloadQt-5679d966b396523a1d555a4029e7da05515be2fa.zip
Qt-5679d966b396523a1d555a4029e7da05515be2fa.tar.gz
Qt-5679d966b396523a1d555a4029e7da05515be2fa.tar.bz2
Memory leak fix for Symbian menus
QSymbianMenuAction were not being deleted when the QSymbianMenuPrivate that owned them was destroyed. Task-number: QTBUG-20357 Reviewed-by: Laszlo Agocs
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qmenu_symbian.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmenu_symbian.cpp b/src/gui/widgets/qmenu_symbian.cpp
index 56eca9a..c9dbff5 100644
--- a/src/gui/widgets/qmenu_symbian.cpp
+++ b/src/gui/widgets/qmenu_symbian.cpp
@@ -357,7 +357,7 @@ QMenuPrivate::QSymbianMenuPrivate::QSymbianMenuPrivate()
QMenuPrivate::QSymbianMenuPrivate::~QSymbianMenuPrivate()
{
-
+ qDeleteAll(actionItems);
}
void QMenuPrivate::QSymbianMenuPrivate::addAction(QAction *a, QSymbianMenuAction *before)