Commit eb339ede authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed segfault when closing array window/subpatch due to lack of checking of...

fixed segfault when closing array window/subpatch due to lack of checking of valid resize/move hook pointers
parent 424517c1
......@@ -733,8 +733,10 @@ void canvas_draw_gop_resize_hooks(t_canvas* x)
}
else{
sys_vgui("destroy %s\n", sh->h_pathname);
sys_vgui("destroy %s\n", mh->h_pathname);
if (sh)
sys_vgui("destroy %s\n", sh->h_pathname);
if (mh)
sys_vgui("destroy %s\n", mh->h_pathname);
sys_vgui(".x%lx.c delete GOP_resblob ; .x%lx.c delete GOP_movblob ;\n", x, x); //delete the GOP_resblob and GOP_movblob
}
canvas_check_nlet_highlights(x);
......
Supports Markdown
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