Commit ed204e4b authored by xielock's avatar xielock Committed by David Reid

Fix bug in ma_node_detach_full(...)

parent 6099e6f4
...@@ -72300,7 +72300,7 @@ static ma_result ma_node_detach_full(ma_node* pNode) ...@@ -72300,7 +72300,7 @@ static ma_result ma_node_detach_full(ma_node* pNode)
linked list logic. We don't need to worry about the audio thread referencing these because the step linked list logic. We don't need to worry about the audio thread referencing these because the step
above severed the connection to the graph. above severed the connection to the graph.
*/ */
for (pOutputBus = (ma_node_output_bus*)ma_atomic_load_ptr(&pInputBus->head.pNext); pOutputBus != NULL; pOutputBus = (ma_node_output_bus*)ma_atomic_load_ptr(&pOutputBus->pNext)) { for (pOutputBus = (ma_node_output_bus*)ma_atomic_load_ptr(&pInputBus->head.pNext); pOutputBus != NULL; pOutputBus = (ma_node_output_bus*)ma_atomic_load_ptr(&pInputBus->head.pNext)) {
ma_node_detach_output_bus(pOutputBus->pNode, pOutputBus->outputBusIndex); /* This won't do any waiting in practice and should be efficient. */ ma_node_detach_output_bus(pOutputBus->pNode, pOutputBus->outputBusIndex); /* This won't do any waiting in practice and should be efficient. */
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment