aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-07 15:24:27 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-07 15:24:27 +0100
commit3a2397716e7e0880e78b8630f801727fe371d878 (patch)
tree53ac9b4f0f27b0a903c9b76875c87a7cf9e1b6ae /src/css.hh
parent9032bd989b2ff743bf2a3c9210d3c158a2cd0981 (diff)
free CSS values based on type
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css.hh b/src/css.hh
index c3b5c45f..ef9774e8 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -199,9 +199,9 @@ class CssProperty {
CssPropertyValue value;
inline void free () {
- switch (name) {
- case CSS_PROPERTY_CONTENT:
- case CSS_PROPERTY_FONT_FAMILY:
+ switch (type) {
+ case CSS_TYPE_STRING:
+ case CSS_TYPE_SYMBOL:
dFree (value.strVal);
break;
default: