Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
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
Hide whitespace changes
Inline
Side-by-side
pd/src/g_template.c
View file @
8d587fbd
...
...
@@ -4449,13 +4449,18 @@ 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)
{
pd_unbind(&x->x_obj.ob_pd, x->x_bindsym);
if (x->x_bindsym)
pd_unbind(&x->x_obj.ob_pd, x->x_bindsym);
}
void event_setup(void)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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