html: css fetcher: Fix passing LWC borrow to fetcher_add, which consumes.

Fixes abort on exit when corestring finalisation tried to unref
what should have been the final ref:

    $ ./nsgtk3
    corrupted double-linked list
    Aborted (core dumped)
This commit is contained in:
Michael Drake 2019-12-02 10:56:41 +00:00
parent 1d73269a49
commit eb88c92749

View File

@ -296,7 +296,8 @@ nserror html_css_fetcher_register(void)
.finalise = html_css_fetcher_finalise
};
return fetcher_add(corestring_lwc_x_ns_css, &html_css_fetcher_ops);
return fetcher_add(lwc_string_ref(corestring_lwc_x_ns_css),
&html_css_fetcher_ops);
}
/* exported interface documented in html_internal.h */