summaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index 955c887..24d46eb 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -359,10 +359,10 @@ css_error css_stylesheet_style_create(css_stylesheet *sheet, uint32_t len,
*/
css_error css_stylesheet_style_destroy(css_stylesheet *sheet, css_style *style)
{
- UNUSED(sheet);
- UNUSED(style);
+ if (sheet == NULL || style == NULL)
+ return CSS_BADPARM;
- /** \todo destroy style */
+ sheet->alloc(style, 0, sheet->pw);
return CSS_OK;
}