mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-15 15:19:19 +03:00
Unref uri after sending it to hlcache when requesting a css pending import, so that we don't leak the uris
svn path=/trunk/netsurf/; revision=10503
This commit is contained in:
parent
2276afb9f6
commit
c1c25e479a
@ -410,6 +410,9 @@ css_error nscss_request_import(struct content_css_data *c,
|
|||||||
0, ctx->referer, NULL, nscss_import, ctx,
|
0, ctx->referer, NULL, nscss_import, ctx,
|
||||||
&child, accept,
|
&child, accept,
|
||||||
&c->imports[c->import_count++].c);
|
&c->imports[c->import_count++].c);
|
||||||
|
|
||||||
|
lwc_string_unref(uri);
|
||||||
|
|
||||||
if (nerror != NSERROR_OK) {
|
if (nerror != NSERROR_OK) {
|
||||||
return CSS_NOMEM;
|
return CSS_NOMEM;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user