aboutsummaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 21:16:03 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 21:16:03 +0100
commitbc4281b01b51f2e7581c27102cafd18df8aed18c (patch)
treeaf26fef5e61897f9d88a85b16f18f4d0f0620321 /src/css.cc
parentf0acc85e5c31a7df366c7dd9492438731a1d65ef (diff)
add CssContext destructor
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/css.cc b/src/css.cc
index d50a1ecc..c9a67cc7 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -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) {