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/styleengine.cc | |
parent | 7ae85804df37613f2bbbc3bbf62856fc42631e81 (diff) |
free font names from style="" attributes (found by Jeremy)
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |