1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-984 Fixed a double dispose issue in destructor.

This commit is contained in:
Fredrik Arvidsson 2014-01-06 13:33:22 +01:00
parent 3ed61a37d0
commit f8714de85b

View File

@ -167,7 +167,8 @@ ConfigTaskWidget::~ConfigTaskWidget()
if (m_saveButton) {
delete m_saveButton;
}
foreach(WidgetBinding * binding, m_widgetBindingsPerWidget) {
QSet<WidgetBinding *> deleteSet = m_widgetBindingsPerWidget.values().toSet();
foreach(WidgetBinding * binding, deleteSet) {
if (binding) {
delete binding;
}