fixed SkSL memory leak
authorethannicholas <ethannicholas@google.com>
Sat, 2 Jul 2016 02:09:27 +0000 (19:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 2 Jul 2016 02:09:27 +0000 (19:09 -0700)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2119903002
NOTREECHECKS=true

Review-Url: https://codereview.chromium.org/2119903002

src/sksl/SkSLParser.cpp

index 3526c6ee66706cf9e4d57502b26b9fc4b5120eb2..480a59ebc8f763dab3bdcf24215d7c8c81aa135f 100644 (file)
@@ -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 */