diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-25 18:31:06 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-25 18:31:06 +0000 |
commit | ddb3c1e8d9e62591f17a463aae05374effae66dc (patch) | |
tree | 7d245f904c865365892dfdccf3056ac774cbbd4f /src | |
parent | bcc22fab44fee60e8a96f69a229db1e3956e5801 (diff) | |
download | libcss-ddb3c1e8d9e62591f17a463aae05374effae66dc.tar.gz libcss-ddb3c1e8d9e62591f17a463aae05374effae66dc.tar.bz2 |
Destroy style objects
svn path=/trunk/libcss/; revision=6265
Diffstat (limited to 'src')
-rw-r--r-- | src/stylesheet.c | 6 |
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; } |