diff options
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 18:59:29 +0000 |
---|---|---|
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 18:59:29 +0000 |
commit | 286a8830f5df5da9036f5125c7ecee6199f0e6a2 (patch) | |
tree | 24311f4c727a4c26dce7ba87c888cd0d5240f1e9 | |
parent | 5898dce287b0d1ec535a9cfc1c5870a9cdcf5d1b (diff) |
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
-rw-r--r-- | src/ports/SkFontConfigParser_android.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ports/SkFontConfigParser_android.cpp b/src/ports/SkFontConfigParser_android.cpp index e8692e912f..d3f9b94b1b 100644 --- a/src/ports/SkFontConfigParser_android.cpp +++ b/src/ports/SkFontConfigParser_android.cpp @@ -219,6 +219,7 @@ static void parseConfigFile(const char *filename, SkTDArray<FontFamily*> &famili } XML_Parse(parser, buffer, len, done); } + XML_ParserFree(parser); fclose(file); } |