summaryrefslogtreecommitdiff
path: root/Applications/Terminal/Terminal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/Terminal/Terminal.cpp')
-rw-r--r--Applications/Terminal/Terminal.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp
index 4bd21a9001..8144990ee3 100644
--- a/Applications/Terminal/Terminal.cpp
+++ b/Applications/Terminal/Terminal.cpp
@@ -104,7 +104,6 @@ void Terminal::Line::clear(Attribute attribute)
Terminal::~Terminal()
{
- free(m_horizontal_tabs);
}
void Terminal::clear()
@@ -889,9 +888,7 @@ void Terminal::set_size(word columns, word rows)
m_saved_cursor_row = 0;
m_saved_cursor_column = 0;
- if (m_horizontal_tabs)
- free(m_horizontal_tabs);
- m_horizontal_tabs = static_cast<byte*>(malloc(columns));
+ m_horizontal_tabs.resize(columns);
for (unsigned i = 0; i < columns; ++i)
m_horizontal_tabs[i] = (i % 8) == 0;
// Rightmost column is always last tab on line.