Text editor: Clear buffer when no longer needed

This commit is contained in:
Leandro Melo
2011-02-07 08:48:10 +01:00
parent ee5e38e55d
commit 64dd45f7b9

View File

@@ -501,6 +501,7 @@ bool BaseTextDocument::open(const QString &fileName)
} else {
d->m_decodingErrorSample.clear();
}
buf.clear();
foreach (const QString &text, content) {
int lf = text.indexOf('\n');