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
Rishabh Gupta
purr-data
Commits
6f2a665d
Commit
6f2a665d
authored
Jan 02, 2017
by
Jonathan Wilkes
Browse files
fix crasher in [grid] from failing to unbind receive symbol
parent
dd715f0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
externals/unauthorized/grid/grid.c
View file @
6f2a665d
...
...
@@ -33,7 +33,7 @@ static int gridcount=0;
static
int
guidebug
=
0
;
static
int
pointsize
=
5
;
static
char
*
grid_version
=
"grid: version 0.8, written by Yves Degoyon (ydegoyon@free.fr)"
;
static
char
*
grid_version
=
"grid: version 0.8
.1
, written by Yves Degoyon (ydegoyon@free.fr)"
;
#define GRID_SYS_VGUI2(a,b) if (guidebug) \
post(a,b);\
...
...
@@ -252,7 +252,7 @@ static void grid_draw_select(t_grid* x,t_glist* glist)
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
if
(
x
->
x_selected
)
{
pd_bind
(
&
x
->
x_obj
.
ob_pd
,
x
->
x_name
);
//
pd_bind(&x->x_obj.ob_pd, x->x_name);
/* sets the item in blue */
//GRID_SYS_VGUI3(".x%lx.c itemconfigure %lxGRID "
// "-outline #0000FF\n",
...
...
@@ -261,7 +261,7 @@ static void grid_draw_select(t_grid* x,t_glist* glist)
}
else
{
pd_unbind
(
&
x
->
x_obj
.
ob_pd
,
x
->
x_name
);
//
pd_unbind(&x->x_obj.ob_pd, x->x_name);
//GRID_SYS_VGUI3(".x%lx.c itemconfigure %lxGRID "
// "-outline #000000\n",
// canvas, x);
...
...
@@ -722,7 +722,7 @@ static t_grid *grid_new(t_symbol *s, int argc, t_atom *argv)
static
void
grid_free
(
t_grid
*
x
)
{
p
ost
(
"grid~: freeing ressources [NULL]"
);
p
d_unbind
(
&
x
->
x_obj
.
ob_pd
,
x
->
x_name
);
}
void
grid_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