summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-02-08 22:21:16 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2016-02-08 22:21:38 (GMT)
commit61833d6e80c934d8f0e5c6ced546622d60e2fedb (patch)
treec06844f4c3a89a57ce2522d15a7674af39a43a15
parent84fcf14d9c97f279302c36d312971eab991ccf22 (diff)
downloadlibcss-61833d6e80c934d8f0e5c6ced546622d60e2fedb.tar.gz
libcss-61833d6e80c934d8f0e5c6ced546622d60e2fedb.tar.bz2
Fix up error path.
-rw-r--r--src/select/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select/select.c b/src/select/select.c
index 2c14eb6..a575a2f 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -548,7 +548,7 @@ css_error css_select_style(css_select_ctx *ctx, void *node,
if (computed_style == NULL) {
error = css_computed_style_create(&computed_style);
if (error != CSS_OK)
- return error;
+ goto cleanup;
}
state.results->styles[CSS_PSEUDO_ELEMENT_NONE] = computed_style;
state.computed = computed_style;