aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: