From 85e3fc7fc05dd06683ef0898c45a58e9237164d6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Apr 2010 19:49:58 +0000 Subject: Ownership of imported stylesheets is retained by the client. svn path=/trunk/libcss/; revision=10367 --- src/stylesheet.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/stylesheet.c') diff --git a/src/stylesheet.c b/src/stylesheet.c index 52f2eed..20cc91f 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -340,7 +340,7 @@ css_error css_stylesheet_next_pending_import(css_stylesheet *parent, * CSS_INVALID if there are no outstanding imports, * appropriate error otherwise. * - * Ownership of the imported stylesheet is transferred to the parent. + * Ownership of the imported stylesheet is retained by the client. */ css_error css_stylesheet_register_import(css_stylesheet *parent, css_stylesheet *import) @@ -965,8 +965,7 @@ css_error css_stylesheet_rule_destroy(css_stylesheet *sheet, css_rule *rule) lwc_string_unref(import->url); - if (import->sheet != NULL) - css_stylesheet_destroy(import->sheet); + /* Do not destroy imported sheet: it is owned by the client */ } break; case CSS_RULE_MEDIA: -- cgit v1.2.3