From 689155bf5b683757194cf96ada2cf2dfc9fcf5c1 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Tue, 26 Mar 2013 00:33:14 -0400 Subject: [PATCH] fixed segfault due to delayed freeing of bindlists (necessary to prevent a segfault for dynamically changed sends/receives) --- pd/src/m_pd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/src/m_pd.c b/pd/src/m_pd.c index b24225b61..ec10a83ca 100644 --- a/pd/src/m_pd.c +++ b/pd/src/m_pd.c @@ -302,7 +302,7 @@ t_pd *pd_findbyclass(t_symbol *s, t_class *c) t_bindelem *e, *e2; int warned = 0; for (e = b->b_list; e; e = e->e_next) - if (*e->e_who == c) + if (e->e_who != NULL && *e->e_who == c) { if (x && !warned) { -- GitLab