diff --git a/src/common/textbuf.cpp b/src/common/textbuf.cpp index 2564a4cdbf..1891af5b1b 100644 --- a/src/common/textbuf.cpp +++ b/src/common/textbuf.cpp @@ -268,9 +268,7 @@ wxTextFileType wxTextBuffer::GuessType() const bool wxTextBuffer::Close() { - m_aTypes.Clear(); - m_aLines.Clear(); - m_nCurLine = 0; + Clear(); m_isOpened = false; return true;