changeset 688:2fe5c35b22e0

add CssSelector destructor
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 17 Dec 2008 17:11:33 +0100
parents 9cbd6a1c8600
children 47db5485c8ca
files src/css.cc src/css.hh
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Wed Dec 17 17:10:04 2008 +0100
+++ b/src/css.cc	Wed Dec 17 17:11:33 2008 +0100
@@ -57,6 +57,10 @@
    top ()->id = id;
 };
 
+CssSelector::~CssSelector () {
+   delete selectorList;
+}
+
 bool CssSelector::match (Doctree *docTree) {
    CssSimpleSelector *sel;
    Combinator comb;
--- a/src/css.hh	Wed Dec 17 17:10:04 2008 +0100
+++ b/src/css.hh	Wed Dec 17 17:11:33 2008 +0100
@@ -234,6 +234,7 @@
       CssSelector (int element = CssSimpleSelector::ELEMENT_ANY,
                    const char *klass = NULL,
                    const char *pseudo = NULL, const char *id = NULL);
+      ~CssSelector ();
       void addSimpleSelector (Combinator c,
                               int element = CssSimpleSelector::ELEMENT_ANY,
                               const char *klass = NULL,