From ce577f4dc491f6d88a4da2105d08080e8d51357f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 8 Oct 2012 20:34:04 +0100 Subject: Port to new urldb API. --- desktop/browser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/browser.c b/desktop/browser.c index 5175fc469..26bb75f39 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1260,7 +1260,7 @@ nserror browser_window_callback(hlcache_handle *c, /* history */ if (bw->history_add && bw->history) { - const char *url = nsurl_access(hlcache_handle_get_url(c)); + nsurl *url = hlcache_handle_get_url(c); history_add(bw->history, c, bw->frag_id == NULL ? NULL : lwc_string_data(bw->frag_id)); @@ -1270,7 +1270,8 @@ nserror browser_window_callback(hlcache_handle *c, urldb_set_url_content_type(url, content_get_type(c)); /* This is safe as we've just added the URL */ - global_history_add(urldb_get_url(url)); + global_history_add( + nsurl_access(urldb_get_url(url))); } } -- cgit v1.2.3