Skip to content

Commit 2247bb9

Browse files
committed
Another DAW crash fix
1 parent 4023a5c commit 2247bb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Pd/Instance.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ void Instance::initialisePd(String& pdlua_version)
256256

257257
});
258258
} else {
259-
MessageManager::callAsync([pd, glist] {
259+
MessageManager::callAsync([pd, inst = juce::WeakReference(inst), glist] {
260+
if(!inst) return;
260261
for (auto* editor : pd->getEditors()) {
261262
for (auto* canvas : editor->getCanvases()) {
262263
auto canvasPtr = canvas->patch.getPointer();

0 commit comments

Comments
 (0)