From ddb3c1e8d9e62591f17a463aae05374effae66dc Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 25 Jan 2009 18:31:06 +0000 Subject: Destroy style objects svn path=/trunk/libcss/; revision=6265 --- src/stylesheet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3