From 40d490eefbdb18ba8b41bd95807e57ee70adf517 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Wed, 20 Aug 2014 10:17:57 -0400 Subject: [PATCH] *tried adding scalehandle_free to the canvas_free class but is currently commented out until we figure out why is this causing a segfault... --- pd/src/g_canvas.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pd/src/g_canvas.c b/pd/src/g_canvas.c index 6e7854494..189ce75f4 100644 --- a/pd/src/g_canvas.c +++ b/pd/src/g_canvas.c @@ -889,6 +889,14 @@ void canvas_free(t_canvas *x) canvas_vis(x, 0); if (x->gl_editor) canvas_destroy_editor(x); /* bug workaround; should already be gone*/ + + /* + if (x-> x_handle) + scalehandle_free(x->x_handle); + if (x-> x_mhandle) + scalehandle_free(x->x_mhandle); + */ + canvas_unbind(x); if (x->gl_env) { -- GitLab