feat: improve Terminal emulator performance
This commit is contained in:
@@ -148,6 +148,7 @@ static void klog_handle_mouse(const Montauk::WinEvent& ev) {
|
||||
static void klog_cleanup() {
|
||||
if (g_klog.term.cells) montauk::free(g_klog.term.cells);
|
||||
if (g_klog.term.alt_cells) montauk::free(g_klog.term.alt_cells);
|
||||
if (g_klog.term.render_cells) montauk::free(g_klog.term.render_cells);
|
||||
if (g_klog.klog_buf) montauk::mfree(g_klog.klog_buf);
|
||||
montauk::memset(&g_klog, 0, sizeof(g_klog));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user