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:
parent
3ed61a37d0
commit
f8714de85b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user