Report memory exhaustion -- the whole tree loading stuff needs an overhaul as it's pretty lax about dealing with memory exhaustion.
svn path=/trunk/netsurf/; revision=7604
This commit is contained in:
parent
d81a949cdd
commit
07c557a25d
|
@ -603,6 +603,10 @@ void options_load_tree_entry(xmlNode *li, struct node *directory) {
|
|||
urldb_set_url_title(url, title);
|
||||
|
||||
entry = tree_create_URL_node(directory, url, data, title);
|
||||
if (entry == NULL) {
|
||||
/** \todo why isn't this fatal? */
|
||||
warn_user("NoMemory", 0);
|
||||
}
|
||||
|
||||
xmlFree(title);
|
||||
free(url);
|
||||
|
|
Loading…
Reference in New Issue