From bc4191dbe438f151f3a0703ed8601105d9bae4e4 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 6 Apr 2023 02:20:48 -0500 Subject: [PATCH] GUI: fix crash --- src/gui/gui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index bc2426487..7359faf16 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3578,8 +3578,10 @@ bool FurnaceGUI::loop() { e->synchronized([this]() { for (int i=0; igetTotalChannelCount(); i++) { DivDispatchOscBuffer* buf=e->getOscBuffer(i); - buf->needle=0; - buf->readNeedle=0; + if (buf!=NULL) { + buf->needle=0; + buf->readNeedle=0; + } } }); }