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:
John Mark Bell 2009-05-28 15:57:54 +00:00
parent d81a949cdd
commit 07c557a25d
1 changed files with 4 additions and 0 deletions

View File

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