mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +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) {
|
if (m_saveButton) {
|
||||||
delete m_saveButton;
|
delete m_saveButton;
|
||||||
}
|
}
|
||||||
foreach(WidgetBinding * binding, m_widgetBindingsPerWidget) {
|
QSet<WidgetBinding *> deleteSet = m_widgetBindingsPerWidget.values().toSet();
|
||||||
|
foreach(WidgetBinding * binding, deleteSet) {
|
||||||
if (binding) {
|
if (binding) {
|
||||||
delete binding;
|
delete binding;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user