diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-29 16:24:44 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-29 16:24:44 +0100 |
commit | cf67233a08169d16537640b43009122b788c1cf8 (patch) | |
tree | 4a173ffd0135e061eb02229837e5123b756cddf9 /src | |
parent | 7ae85804df37613f2bbbc3bbf62856fc42631e81 (diff) |
free font names from style="" attributes (found by Jeremy)
Diffstat (limited to 'src')
-rw-r--r-- | src/cssparser.cc | 2 | ||||
-rw-r--r-- | src/styleengine.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index 87718d31..bd5949bd 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -1186,7 +1186,7 @@ void a_Css_parse(CssContext * context, CssPropertyList *a_Css_parse_declaration(const char *buf, int buflen) { - CssPropertyList *props = new CssPropertyList (); + CssPropertyList *props = new CssPropertyList (true); CssParser parser; parser.context = NULL; diff --git a/src/styleengine.cc b/src/styleengine.cc index 015f75be..3f15c419 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -428,13 +428,13 @@ Style * StyleEngine::style0 (CssPropertyList *nonCssProperties) { // merge style information cssContext->apply (&props, this, styleAttributeProps, nonCssProperties); - if (styleAttributeProps) - delete styleAttributeProps; - // apply style apply (&attrs, &props); stack->getRef (stack->size () - 1)->style = Style::create (layout, &attrs); + + if (styleAttributeProps) + delete styleAttributeProps; return stack->getRef (stack->size () - 1)->style; } |