Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
8d587fbd
Commit
8d587fbd
authored
Oct 20, 2015
by
Jonathan Wilkes
Browse files
fix crasher when [event] is deleted without having bound a symbol
parent
de65f674
Changes
1
Show whitespace changes
Inline
Side-by-side
pd/src/g_template.c
View file @
8d587fbd
...
...
@@ -4449,12 +4449,17 @@ static void *event_new(void)
x->x_bindsym = gensym(namebuf);
pd_bind(&x->x_obj.ob_pd, x->x_bindsym);
}
else
{
x->x_bindsym = 0;
}
outlet_new(&x->x_obj, &s_anything);
return (x);
}
static void event_free(t_event *x)
{
if (x->x_bindsym)
pd_unbind(&x->x_obj.ob_pd, x->x_bindsym);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment