Skip to content
Snippets Groups Projects
Commit b555d21f authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix crash on exiting GUI

parent 5e88a4b7
Branches
Tags
No related merge requests found
......@@ -57,6 +57,11 @@ namespace AccessClass
bc->addActionListener(mc);
}
void shutdownBroadcaster()
{
bc = nullptr;
}
/** Returns a pointer to the application's EditorViewport. */
EditorViewport* getEditorViewport()
{
......
......@@ -47,6 +47,8 @@ namespace AccessClass
*/
void setUIComponent(UIComponent*);
void shutdownBroadcaster();
/** Returns a pointer to the application's EditorViewport. */
EditorViewport* getEditorViewport();
......
......@@ -91,6 +91,7 @@ UIComponent::UIComponent(MainWindow* mainWindow_, ProcessorGraph* pgraph, AudioC
UIComponent::~UIComponent()
{
dataViewport->destroyTab(0); // get rid of tab for InfoLabel
AccessClass::shutdownBroadcaster();
}
void UIComponent::resized()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment