From 714f44f6412ecf4cfd62abd9133210f0bf937e75 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 28 Jan 2009 22:38:57 +0100 Subject: make sure strings from CSS parser are freed --- src/cssparser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cssparser.cc') diff --git a/src/cssparser.cc b/src/cssparser.cc index d000c45f..03fc102c 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -1110,9 +1110,9 @@ static void Css_parse_ruleset(CssParser * parser) DEBUG_MSG(DEBUG_PARSE_LEVEL, "end of %s\n", "selectors"); - props = new CssPropertyList(); + props = new CssPropertyList(true); props->ref(); - importantProps = new CssPropertyList(); + importantProps = new CssPropertyList(true); importantProps->ref(); /* Read block. ('{' has already been read.) */ -- cgit v1.2.3