Skip to content
Snippets Groups Projects
Commit 6aa2efba authored by deuce's avatar deuce
Browse files

Better cleanup of cterm sessions.

parent 9213d932
No related branches found
No related tags found
No related merge requests found
......@@ -5428,8 +5428,16 @@ void CIOLIBCALL cterm_end(struct cterminal *cterm)
listFree(&cterm->notes);
}
if (cterm->strbuf)
FREE_AND_NULL(cterm->strbuf);
FREE_AND_NULL(cterm->strbuf);
FREE_AND_NULL(cterm->tabs);
FREE_AND_NULL(cterm->fg_tc_str);
FREE_AND_NULL(cterm->bg_tc_str);
FREE_AND_NULL(cterm->sx_pixels);
FREE_AND_NULL(cterm->sx_mask);
for (i = 0; i < (sizeof(cterm->macros) / sizeof(cterm->macros[0])); i++) {
FREE_AND_NULL(cterm->macros[i]);
}
free(cterm);
}
}
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