From 37d191ccdf97d2d66a51b51a0db1927f983d6957 Mon Sep 17 00:00:00 2001 From: Richard Eakin Date: Tue, 29 Oct 2024 18:20:20 -0700 Subject: [PATCH] audio: Context::disconnectAllNodes() clears out any auto-pulled nodes after disconnecting --- src/cinder/audio/Context.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cinder/audio/Context.cpp b/src/cinder/audio/Context.cpp index c306326174..94611322b1 100644 --- a/src/cinder/audio/Context.cpp +++ b/src/cinder/audio/Context.cpp @@ -208,6 +208,11 @@ void Context::disconnectAllNodes() for( const auto& node : mAutoPulledNodes ) disconnectRecursive( node, traversedNodes ); + + // clear out all auto-pulled nodes + mAutoPulledNodes.clear(); + mAutoPullCache.clear(); + mAutoPullCacheDirty = false; } void Context::setOutput( const OutputNodeRef &output )