Use clean accessor for bw URL.

This commit is contained in:
Michael Drake 2014-02-08 15:06:51 +00:00
parent 7794f3fb14
commit 7a81fe9165

View File

@ -199,8 +199,7 @@ void nsgtk_source_dialog_init(GtkWindow *parent, struct browser_window *bw)
return;
}
thiswindow->url = strdup(nsurl_access(hlcache_handle_get_url(
bw->current_content)));
thiswindow->url = strdup(nsurl_access(browser_window_get_url(bw)));
if (thiswindow->url == NULL) {
free(thiswindow);
free(data);