mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-15 05:54:15 +03:00
Use clean accessor for bw URL.
This commit is contained in:
parent
7794f3fb14
commit
7a81fe9165
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user