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:
Daniel Silverstone 2010-04-27 22:25:41 +00:00
parent 2276afb9f6
commit c1c25e479a

View File

@ -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;
} }