From 7509b9a098849dad73d598ab8d32dd8aed45ab61 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 27 Apr 2010 22:11:29 +0000 Subject: Ensure than trailing tokens are cleaned on completion of inline style parsing svn path=/trunk/libcss/; revision=10501 --- src/parse/parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/parse/parse.c b/src/parse/parse.c index d52a6c4..e5b9c84 100644 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -2446,8 +2446,10 @@ css_error parseInlineStyle(css_parser *parser) return transition(parser, to, subsequent); } case AfterISBody0: - /* Emit remaining fake events to end the parse */ + /* Clean up any remaining tokens */ + unref_interned_strings_in_tokens(parser); + /* Emit remaining fake events to end the parse */ if (parser->event != NULL) { /* 1) end ruleset */ parser->event(CSS_PARSER_END_RULESET, NULL, -- cgit v1.2.3