diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-13 21:16:03 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-13 21:16:03 +0100 |
commit | bc4281b01b51f2e7581c27102cafd18df8aed18c (patch) | |
tree | af26fef5e61897f9d88a85b16f18f4d0f0620321 /src/css.cc | |
parent | f0acc85e5c31a7df366c7dd9492438731a1d65ef (diff) |
add CssContext destructor
Diffstat (limited to 'src/css.cc')
-rw-r--r-- | src/css.cc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -145,9 +145,12 @@ CssContext::CssContext () { } CssContext::~CssContext () { + for (int o = CSS_PRIMARY_USER_AGENT; o < CSS_PRIMARY_LAST; o++) + if (sheet[o] != userAgentStyle && sheet[o] != userStyle && + sheet[o] != userImportantStyle) + delete sheet[o]; } - void CssContext::apply (CssPropertyList *props, Doctree *docTree, CssPropertyList *tagStyle, CssPropertyList *nonCss) { |