waveformscope: fixed double free on close

This commit is contained in:
itsmattkc
2020-04-28 17:40:22 +10:00
parent 737edba243
commit ad419754a9
3 changed files with 18 additions and 5 deletions
+2
View File
@@ -36,6 +36,8 @@ PanelManager::PanelManager(QObject *parent) :
void PanelManager::DeleteAllPanels()
{
foreach (PanelWidget* panel, focus_history_) {
// We don't need to run this signal anymore since we're destroying and clearing everything
disconnect(panel, &PanelWidget::destroyed, this, &PanelManager::PanelDestroyed);
delete panel;
}
focus_history_.clear();