If the about handler fails to intern its strings, return the error, cleaning up first

svn path=/trunk/netsurf/; revision=13031
This commit is contained in:
Daniel Silverstone 2011-10-11 06:55:20 +00:00
parent 56e7b23415
commit 986720d9d7

View File

@ -586,6 +586,12 @@ static bool fetch_about_initialise(lwc_string *scheme)
error = lwc_intern_string(about_handler_list[abt_loop].name,
about_handler_list[abt_loop].name_len,
&about_handler_list[abt_loop].lname);
if (error != lwc_error_ok) {
while (abt_loop-- != 0) {
lwc_string_unref(about_handler_list[abt_loop].lname);
}
return false;
}
}
return true;