Internals: Fix memory leak in V3FileLine (#3407) (#3408). No functional change intended.

This commit is contained in:
HungMingWu
2022-05-14 18:15:38 -04:00
committed by GitHub
parent c2328ef46a
commit 560efb2c9e
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ FileLine::FileLine(FileLine::EmptySecret) {
}
void FileLine::newContent() {
m_contentp = new VFileContent;
m_contentp = std::make_shared<VFileContent>();
m_contentLineno = 1;
}