summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/select.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/css/select.c b/css/select.c
index be95a29c0..c859f37e3 100644
--- a/css/select.c
+++ b/css/select.c
@@ -1474,6 +1474,10 @@ css_error node_presentational_hint(void *pw, void *node,
strcasecmp((const char *) type,
"password") == 0)
hint->data.length.unit = CSS_UNIT_EX;
+ else {
+ xmlFree(type);
+ return CSS_PROPERTY_NOT_SET;
+ }
if (type != NULL)
xmlFree(type);