commit | 286a8830f5df5da9036f5125c7ecee6199f0e6a2 | [log] [tgz] |
---|---|---|
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 18 18:59:29 2013 +0000 |
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 18 18:59:29 2013 +0000 |
tree | 24311f4c727a4c26dce7ba87c888cd0d5240f1e9 | |
parent | 5898dce287b0d1ec535a9cfc1c5870a9cdcf5d1b [diff] [blame] |
cleanup XML_Parser after reading android config files. This CL is based on one submitted for AOSP review... Fix memory leak in parseConfigFile() Need to call XML_ParserFree() on parsers created by XML_ParserCreate() Signed-off-by: Carton He <carton.he@marvell.com> https://android-review.googlesource.com/#/c/65690/1 R=mtklein@google.com Review URL: https://codereview.chromium.org/24171003 git-svn-id: http://skia.googlecode.com/svn/trunk@11357 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkFontConfigParser_android.cpp b/src/ports/SkFontConfigParser_android.cpp index e8692e9..d3f9b94 100644 --- a/src/ports/SkFontConfigParser_android.cpp +++ b/src/ports/SkFontConfigParser_android.cpp
@@ -219,6 +219,7 @@ } XML_Parse(parser, buffer, len, done); } + XML_ParserFree(parser); fclose(file); }