mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-02 07:35:25 +03:00
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:
parent
56e7b23415
commit
986720d9d7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user