Fix crash on close, do not setup worker threads
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
ff5f9f6285
commit
86fbd84cf6
3 changed files with 29 additions and 4 deletions
|
|
@ -129,10 +129,12 @@ public:
|
|||
|
||||
~CardinalUI() override
|
||||
{
|
||||
const ScopedContext sc(this);
|
||||
rack::contextSet(fContext);
|
||||
|
||||
delete fContext->window;
|
||||
fContext->window = nullptr;
|
||||
|
||||
rack::contextSet(nullptr);
|
||||
}
|
||||
|
||||
void onNanoDisplay() override
|
||||
|
|
@ -513,9 +515,8 @@ protected:
|
|||
if (filename == nullptr)
|
||||
return;
|
||||
|
||||
// we cannot lock here
|
||||
// const ScopedContext sc(this);
|
||||
rack::contextSet(fContext);
|
||||
WindowParametersRestore(fContext->window);
|
||||
fContext->patch->loadAction(filename);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue