Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: src/sksl/SkSLParser.cpp

Issue 2119903002: fixed SkSL memory leak (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/SkSLParser.cpp
diff --git a/src/sksl/SkSLParser.cpp b/src/sksl/SkSLParser.cpp
index 3526c6ee66706cf9e4d57502b26b9fc4b5120eb2..480a59ebc8f763dab3bdcf24215d7c8c81aa135f 100644
--- a/src/sksl/SkSLParser.cpp
+++ b/src/sksl/SkSLParser.cpp
@@ -70,6 +70,7 @@ Parser::Parser(std::string text, SymbolTable& types, ErrorReporter& errors)
Parser::~Parser() {
sksl_delete_buffer(fBuffer, fScanner);
+ sksllex_destroy(fScanner);
}
/* (precision | directive | declaration)* END_OF_FILE */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698