From cf67233a08169d16537640b43009122b788c1cf8 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 29 Jan 2009 16:24:44 +0100 Subject: free font names from style="" attributes (found by Jeremy) --- src/styleengine.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/styleengine.cc') 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; } -- cgit v1.2.3