Commit 2e7b4136 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

quick fix for #88: "couldn't unbind" messages when array object is deleted

parent 66e8df11
......@@ -1014,7 +1014,8 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
sprintf(tagbuf, "scalar%lx", (long unsigned int)x->sc_vec);
gui_vmess("gui_scalar_erase", "xs",
glist_getcanvas(owner), tagbuf);
pd_unbind(&x->sc_gobj.g_pd, gensym(buf));
if (gensym(buf)->s_thing)
pd_unbind(&x->sc_gobj.g_pd, gensym(buf));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment