changeset 920:30705c82cb71

free CSS values based on type
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Sat, 07 Feb 2009 15:24:27 +0100
parents 157e7fdf521a
children 3002267a8555
files src/css.hh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.hh	Sat Feb 07 14:42:53 2009 +0100
+++ b/src/css.hh	Sat Feb 07 15:24:27 2009 +0100
@@ -199,9 +199,9 @@
       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: