Skip to content

Commit

Permalink
Fix crash bug in signal_makereusable.
Browse files Browse the repository at this point in the history
  • Loading branch information
agraef committed Oct 2, 2024
1 parent c002630 commit 6c726f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pd/src/d_ugen.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void signal_makereusable(t_signal *sig)
if (ugen_loud) post("free %zx: %d", sig, sig->s_isborrowed);
if (sig->s_isborrowed || sig->s_isscalar)
{
if (sig->s_isborrowed)
if (sig->s_isborrowed && sig->s_borrowedfrom)
{
/* if the signal is borrowed, decrement the borrowed-from signal's
reference count, possibly marking it reusable too */
Expand Down

0 comments on commit 6c726f0

Please sign in to comment.