diff options
Diffstat (limited to 'pd/src/d_ugen.c')
-rw-r--r-- | pd/src/d_ugen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pd/src/d_ugen.c b/pd/src/d_ugen.c index 3fa7db54..1ed39600 100644 --- a/pd/src/d_ugen.c +++ b/pd/src/d_ugen.c @@ -617,6 +617,12 @@ t_dspcontext *ugen_start_graph(int toplevel, t_signal **sp, if (ugen_loud) post("ugen_start_graph..."); + /* protect against invalid numsignals + * this might happen if we have an abstraction with inlet~/outlet~ opened as a toplevel patch + */ + if(toplevel) + ninlets=noutlets=0; + dc->dc_ugenlist = 0; dc->dc_toplevel = toplevel; dc->dc_iosigs = sp; |