From d5335ab028e32e65c944af78a660f145095f34f8 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Sun, 8 Dec 2013 05:22:25 -0500 Subject: [PATCH] *Addendum to the earlier segfault fix which was incomplete --- pd/src/g_canvas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pd/src/g_canvas.c b/pd/src/g_canvas.c index d7e6505d0..5318a21e9 100644 --- a/pd/src/g_canvas.c +++ b/pd/src/g_canvas.c @@ -696,6 +696,8 @@ void canvas_draw_gop_resize_hooks(t_canvas* x) t_scalehandle *sh = (t_scalehandle *)(x->x_handle); t_scalehandle *mh = (t_scalehandle *)(x->x_mhandle); + if (!sh || !mh) return; //in case we are an array which does not initialize its hooks + if(x->gl_edit && glist_isvisible(x) && glist_istoplevel(x) && x->gl_goprect && !x->gl_editor->e_selection) { //Drawing and Binding Resize_Blob for GOP -- GitLab