From aae54af990a3ec8fd5adbb0b26329312635de1eb Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Sun, 11 Dec 2011 23:00:31 -0500 Subject: [PATCH] reverted explicit freeing of templates since OS takes care of that anyhow --- src/s_inter.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/s_inter.c b/src/s_inter.c index 1cf70a6ae..d9c83cffe 100644 --- a/src/s_inter.c +++ b/src/s_inter.c @@ -1316,9 +1316,13 @@ extern t_pd *garray_floattemplatecanvas; void glob_quit(void *dummy) { - //let's try to cleanly remove invisible template canvases to avoid memory leaks - if (garray_arraytemplatecanvas) canvas_free( (t_canvas *)garray_arraytemplatecanvas); - if (garray_floattemplatecanvas) canvas_free( (t_canvas *)garray_floattemplatecanvas); + //If we're going to try to cleanly close everything here, we should do the same for all open + //patches and that is currently not the case, so for the time being, let's just leave OS to deal + //with freeing of all memory when the program exits... + + //let's try to cleanly remove invisible template canvases + //if (garray_arraytemplatecanvas) canvas_free( (t_canvas *)garray_arraytemplatecanvas); + //if (garray_floattemplatecanvas) canvas_free( (t_canvas *)garray_floattemplatecanvas); sys_vgui("exit\n"); if (!sys_nogui) { -- GitLab