Skip to content

Commit

Permalink
add comments for prune_ugens()
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Nov 21, 2024
1 parent 3a09e40 commit 956ed8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/chuck_vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1918,8 +1918,13 @@ void Chuck_VM_Shred::detach_ugens()
// advance the iterator
iter++;
}
// prune

// prune ugens still associated with the shred
// as of 1.5.4.2 this is no longer necessary in the general and non-OTF
// case; but for OTF replace and remove, this will conservatively release
// ugens (e.g., with refcount==1); see prune_ugens() for more info
prune_ugens();

// clear map
m_ugen_map.clear();
}
Expand Down

0 comments on commit 956ed8f

Please sign in to comment.