Skip to content
Snippets Groups Projects
Commit aae54af9 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

reverted explicit freeing of templates since OS takes care of that anyhow

parent d17c410a
No related branches found
No related tags found
No related merge requests found
...@@ -1316,9 +1316,13 @@ extern t_pd *garray_floattemplatecanvas; ...@@ -1316,9 +1316,13 @@ extern t_pd *garray_floattemplatecanvas;
void glob_quit(void *dummy) void glob_quit(void *dummy)
{ {
//let's try to cleanly remove invisible template canvases to avoid memory leaks //If we're going to try to cleanly close everything here, we should do the same for all open
if (garray_arraytemplatecanvas) canvas_free( (t_canvas *)garray_arraytemplatecanvas); //patches and that is currently not the case, so for the time being, let's just leave OS to deal
if (garray_floattemplatecanvas) canvas_free( (t_canvas *)garray_floattemplatecanvas); //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"); sys_vgui("exit\n");
if (!sys_nogui) if (!sys_nogui)
{ {
......
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