Skip to content
Snippets Groups Projects
Commit 3270b673 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

port from Vanilla: fix crasher bug in clone_free()

Vanilla commit ab4750bd39964efd5c9a32fdaf9fb300d0d2f5d7
parent 9ac143b2
No related branches found
No related tags found
No related merge requests found
...@@ -167,14 +167,13 @@ static void clone_free(t_clone *x) ...@@ -167,14 +167,13 @@ static void clone_free(t_clone *x)
{ {
canvas_closebang(x->x_vec[i].c_gl); canvas_closebang(x->x_vec[i].c_gl);
pd_free(&x->x_vec[i].c_gl->gl_pd); pd_free(&x->x_vec[i].c_gl->gl_pd);
t_freebytes(x->x_outvec[i],
x->x_nout * sizeof(*x->x_outvec[i]));
} }
t_freebytes(x->x_vec, x->x_n * sizeof(*x->x_vec)); t_freebytes(x->x_vec, x->x_n * sizeof(*x->x_vec));
t_freebytes(x->x_argv, x->x_argc * sizeof(*x->x_argv)); t_freebytes(x->x_argv, x->x_argc * sizeof(*x->x_argv));
t_freebytes(x->x_invec, x->x_nin * sizeof(*x->x_invec)); t_freebytes(x->x_invec, x->x_nin * sizeof(*x->x_invec));
for (i = 0; i < x->x_nout; i++) t_freebytes(x->x_outvec, x->x_n * sizeof(*x->x_outvec));
t_freebytes(x->x_outvec[i],
x->x_nout * sizeof(*x->x_outvec[i]));
t_freebytes(x->x_outvec, x->x_nout * sizeof(*x->x_outvec));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment