Browse Source

Plugin Host: Fixed a potential crash when creating a new document

tags/2021-05-28
hogliux 8 years ago
parent
commit
39ce151636
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      examples/audio plugin host/Source/GraphEditorPanel.cpp

+ 3
- 2
examples/audio plugin host/Source/GraphEditorPanel.cpp View File

@@ -849,8 +849,9 @@ void GraphEditorPanel::changeListenerCallback (ChangeBroadcaster*)
void GraphEditorPanel::updateComponents()
{
for (auto* child : getChildren())
if (auto* fc = dynamic_cast<FilterComponent*> (child))
auto children = getChildren();
for (auto child : children)
if (auto* fc = dynamic_cast<FilterComponent*> (static_cast<Component*> (child)))
fc->update();
for (int i = getNumChildComponents(); --i >= 0;)


Loading…
Cancel
Save