summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-15 10:45:09 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-12-15 10:45:09 +0000
commitc6a6c1afe19a91af5032017cc31cf00d8fc5ccaa (patch)
treeea8789f89fedcb864a3a88306f7689074434ae1d
parentebd008dce42eaf30ee0de0e86c8597589d5e1b97 (diff)
downloadlibcss-c6a6c1afe19a91af5032017cc31cf00d8fc5ccaa.tar.gz
libcss-c6a6c1afe19a91af5032017cc31cf00d8fc5ccaa.tar.bz2
Fix destruction of wrong style. Coverity #1137922.
-rw-r--r--src/parse/properties/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/properties/utils.c b/src/parse/properties/utils.c
index bfcba04..d73c6c7 100644
--- a/src/parse/properties/utils.c
+++ b/src/parse/properties/utils.c
@@ -168,7 +168,7 @@ css_error css__parse_border_side(css_language *c,
error = css__stylesheet_style_create(c->sheet, &width_style);
if (error != CSS_OK) {
css__stylesheet_style_destroy(color_style);
- css__stylesheet_style_destroy(width_style);
+ css__stylesheet_style_destroy(style_style);
return error;
}